pub struct Degrees;Expand description
An angle specified in degrees.
Trait Implementations§
Source§impl<T> AngleUnit<T> for Degreeswhere
T: AngleValue,
impl<T> AngleUnit<T> for Degreeswhere
T: AngleValue,
Source§fn to_radians(value: T) -> Angle<Radians, T>
fn to_radians(value: T) -> Angle<Radians, T>
Converts the supplied value, from this unit’s type, into radians.
Source§fn to_degrees(value: T) -> Angle<Degrees, T>
fn to_degrees(value: T) -> Angle<Degrees, T>
Converts the supplied value, from this unit’s type, into degrees.
Source§fn to_rotations(value: T) -> Angle<Rotations, T>
fn to_rotations(value: T) -> Angle<Rotations, T>
Converts the supplied value, from this unit’s type, into rotations.
Source§fn to_percentage(value: T) -> Angle<Percentage, T>
fn to_percentage(value: T) -> Angle<Percentage, T>
Converts the supplied value, from this unit’s type, into percentage.
Source§fn from_radians(value: T) -> Angle<Self, T>
fn from_radians(value: T) -> Angle<Self, T>
Converts the supplied value, in radians, into this unit’s type.
Source§fn from_degrees(value: T) -> Angle<Self, T>
fn from_degrees(value: T) -> Angle<Self, T>
Converts the supplied value, in degrees, into this unit’s type.
Source§fn from_rotations(value: T) -> Angle<Self, T>
fn from_rotations(value: T) -> Angle<Self, T>
Converts the supplied value, in rotations, into this unit’s type.
Source§fn from_percentage(value: T) -> Angle<Self, T>
fn from_percentage(value: T) -> Angle<Self, T>
Converts the supplied value, in percentage, into this unit’s type.
impl Copy for Degrees
Auto Trait Implementations§
impl Freeze for Degrees
impl RefUnwindSafe for Degrees
impl Send for Degrees
impl Sync for Degrees
impl Unpin for Degrees
impl UnwindSafe for Degrees
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