pub struct Per<N: Unit, D: Unit>(/* private fields */);Expand description
Unit representing the division of two other units.
Per<N, D> corresponds to N / D and carries both the
dimensional information and the scaling ratio between the
constituent units. It is generic over any numerator and
denominator units, which allows implementing arithmetic
generically for all pairs without bespoke macros.
Trait Implementations§
Source§impl<N: PartialOrd + Unit, D: PartialOrd + Unit> PartialOrd for Per<N, D>
impl<N: PartialOrd + Unit, D: PartialOrd + Unit> PartialOrd for Per<N, D>
impl<N: Copy + Unit, D: Copy + Unit> Copy for Per<N, D>
impl<N: Unit, D: Unit> StructuralPartialEq for Per<N, D>
Auto Trait Implementations§
impl<N, D> Freeze for Per<N, D>
impl<N, D> RefUnwindSafe for Per<N, D>where
N: RefUnwindSafe,
D: RefUnwindSafe,
impl<N, D> Send for Per<N, D>
impl<N, D> Sync for Per<N, D>
impl<N, D> Unpin for Per<N, D>
impl<N, D> UnwindSafe for Per<N, D>where
N: UnwindSafe,
D: 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