pub struct Positive(/* private fields */);Expand description
A representation-preserving proof that a duration is non-zero. APIs can retain it instead of rechecking the duration.
Implementations§
Trait Implementations§
impl Copy for Positive
impl Eq for Positive
Source§impl Ord for Positive
impl Ord for Positive
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Positive
impl PartialOrd for Positive
impl StructuralPartialEq for Positive
Auto Trait Implementations§
impl Freeze for Positive
impl RefUnwindSafe for Positive
impl Send for Positive
impl Sync for Positive
impl Unpin for Positive
impl UnsafeUnpin for Positive
impl UnwindSafe for Positive
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