Struct rotated_grid::Angle
source · pub struct Angle<T>(_);
Expand description
An angle expressed in radians.
Implementations§
source§impl<T> Angle<T>
impl<T> Angle<T>
sourcepub fn from_radians(radians: T) -> Self
pub fn from_radians(radians: T) -> Self
Constructs the value from an angle specified in radians.
sourcepub fn into_radians(self) -> T
pub fn into_radians(self) -> T
Converts the value back into radians.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Angle<T>where T: RefUnwindSafe,
impl<T> Send for Angle<T>where T: Send,
impl<T> Sync for Angle<T>where T: Sync,
impl<T> Unpin for Angle<T>where T: Unpin,
impl<T> UnwindSafe for Angle<T>where T: UnwindSafe,
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