pub struct Prod<A: Unit, B: Unit>(/* private fields */);Expand description
Unit representing the product of two other units.
Prod<A, B> corresponds to A * B and carries both the
dimensional information and the scaling ratio between the
constituent units.
Trait Implementations§
Source§impl<A: PartialOrd + Unit, B: PartialOrd + Unit> PartialOrd for Prod<A, B>
impl<A: PartialOrd + Unit, B: PartialOrd + Unit> PartialOrd for Prod<A, B>
impl<A: Copy + Unit, B: Copy + Unit> Copy for Prod<A, B>
impl<A: Unit, B: Unit> StructuralPartialEq for Prod<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Prod<A, B>
impl<A, B> RefUnwindSafe for Prod<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Prod<A, B>
impl<A, B> Sync for Prod<A, B>
impl<A, B> Unpin for Prod<A, B>
impl<A, B> UnsafeUnpin for Prod<A, B>
impl<A, B> UnwindSafe for Prod<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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_const::<T>().value();
const FULL_TURN: f64 = const FULL_TURN: f64 = Radians::new(TAU).to_const::<T>().value();
One full revolution (360°) expressed in T unit.
Source§const HALF_TURN: f64 = const HALF_TURN: f64 = Radians::new(TAU).to_const::<T>().value() * 0.5;
const HALF_TURN: f64 = const HALF_TURN: f64 = Radians::new(TAU).to_const::<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_const::<T>().value() * 0.25;
const QUARTED_TURN: f64 = const QUARTED_TURN: f64 = Radians::new(TAU).to_const::<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