pub struct Radians;Expand description
An angle specified in radians.
Trait Implementations§
Source§impl<T> AngleUnit<T> for Radianswhere
T: AngleValue,
impl<T> AngleUnit<T> for Radianswhere
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 Radians
Auto Trait Implementations§
impl Freeze for Radians
impl RefUnwindSafe for Radians
impl Send for Radians
impl Sync for Radians
impl Unpin for Radians
impl UnwindSafe for Radians
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