pub struct Turn;Expand description
Turn (full revolution; 360 degrees).
Trait Implementations§
Source§impl PartialOrd for Turn
impl PartialOrd for Turn
impl Copy for Turn
impl StructuralPartialEq for Turn
Auto Trait Implementations§
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnwindSafe for Turn
Blanket Implementations§
Source§impl<T> AngularUnit for T
impl<T> AngularUnit for T
Source§const FULL_TURN: f64 = const FULL_TURN: f64 = Radians::new(TAU).to::<T>().value();
const FULL_TURN: f64 = const FULL_TURN: f64 = Radians::new(TAU).to::<T>().value();
One full revolution (360°) expressed in T unit.
Source§const HALF_TURN: f64 = const HALF_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.5;
const HALF_TURN: f64 = const HALF_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.5;
Half a revolution (180°) expressed in T unit.
Source§const QUARTED_TURN: f64 = const QUARTED_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.25;
const QUARTED_TURN: f64 = const QUARTED_TURN: f64 = Radians::new(TAU).to::<T>().value() * 0.25;
Quarter revolution (90°) expressed in T unit.
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