pub struct MilliMeter(pub u32);
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl Add for MilliMeter
MilliMeter + MilliMeter = MilliMeter
impl Add for MilliMeter
MilliMeter + MilliMeter = MilliMeter
§Example
use library::overload::MilliMeter;
let a = MilliMeter(1);
let b = MilliMeter(2);
let c = a + b;
assert_eq!(c.0, 3);
Auto Trait Implementations§
impl Freeze for MilliMeter
impl RefUnwindSafe for MilliMeter
impl Send for MilliMeter
impl Sync for MilliMeter
impl Unpin for MilliMeter
impl UnwindSafe for MilliMeter
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