pub struct ObliqueAngle(/* private fields */);
Expand description
Angle of an oblique style in degrees from -90 to 90.
Implementations§
source§impl ObliqueAngle
impl ObliqueAngle
sourcepub fn from_degrees(degrees: f32) -> Self
pub fn from_degrees(degrees: f32) -> Self
Creates a new oblique angle from degrees.
sourcepub fn from_radians(radians: f32) -> Self
pub fn from_radians(radians: f32) -> Self
Creates a new oblique angle from radians.
sourcepub fn from_gradians(gradians: f32) -> Self
pub fn from_gradians(gradians: f32) -> Self
Creates a new oblique angle from gradians.
sourcepub fn from_turns(turns: f32) -> Self
pub fn from_turns(turns: f32) -> Self
Creates a new oblique angle from turns.
sourcepub fn to_degrees(self) -> f32
pub fn to_degrees(self) -> f32
Returns the oblique angle in degrees.
Trait Implementations§
source§impl Clone for ObliqueAngle
impl Clone for ObliqueAngle
source§fn clone(&self) -> ObliqueAngle
fn clone(&self) -> ObliqueAngle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ObliqueAngle
impl Debug for ObliqueAngle
source§impl Default for ObliqueAngle
impl Default for ObliqueAngle
source§impl PartialEq for ObliqueAngle
impl PartialEq for ObliqueAngle
impl Copy for ObliqueAngle
impl Eq for ObliqueAngle
impl StructuralPartialEq for ObliqueAngle
Auto Trait Implementations§
impl Freeze for ObliqueAngle
impl RefUnwindSafe for ObliqueAngle
impl Send for ObliqueAngle
impl Sync for ObliqueAngle
impl Unpin for ObliqueAngle
impl UnwindSafe for ObliqueAngle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)