pub struct Years(/* private fields */);Expand description
A retention period in whole years, never under FLOOR_YEARS.
Implementations§
Trait Implementations§
impl Copy for Years
impl Eq for Years
Source§impl Ord for Years
impl Ord for Years
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 Years
impl PartialOrd for Years
impl StructuralPartialEq for Years
Auto Trait Implementations§
impl Freeze for Years
impl RefUnwindSafe for Years
impl Send for Years
impl Sync for Years
impl Unpin for Years
impl UnsafeUnpin for Years
impl UnwindSafe for Years
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