pub struct UnitId(/* private fields */);Expand description
A unique identifier for a drainage unit.
Invariant: the wrapped value is always strictly positive. Zero is reserved by the HFX format; negatives are invalid.
Implementations§
Trait Implementations§
impl Copy for UnitId
impl Eq for UnitId
Source§impl Ord for UnitId
impl Ord for UnitId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for UnitId
impl PartialOrd for UnitId
impl StructuralPartialEq for UnitId
Auto Trait Implementations§
impl Freeze for UnitId
impl RefUnwindSafe for UnitId
impl Send for UnitId
impl Sync for UnitId
impl Unpin for UnitId
impl UnsafeUnpin for UnitId
impl UnwindSafe for UnitId
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