#[repr(u8)]pub enum Granularity {
Millisecond = 0,
Second = 1,
Minute = 2,
Hour = 3,
Day = 4,
Month = 5,
Quarter = 6,
Year = 7,
Decade = 8,
Century = 9,
Millennium = 10,
}Expand description
Granularity of a BTIC bound — the calendrical unit from which it was derived.
Granularity is metadata only; it does not affect comparison or ordering.
Variants§
Millisecond = 0
Second = 1
Minute = 2
Hour = 3
Day = 4
Month = 5
Quarter = 6
Year = 7
Decade = 8
Century = 9
Millennium = 10
Implementations§
Trait Implementations§
Source§impl Clone for Granularity
impl Clone for Granularity
Source§fn clone(&self) -> Granularity
fn clone(&self) -> Granularity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Granularity
Source§impl Debug for Granularity
impl Debug for Granularity
Source§impl Display for Granularity
impl Display for Granularity
impl Eq for Granularity
Source§impl Hash for Granularity
impl Hash for Granularity
Source§impl Ord for Granularity
impl Ord for Granularity
Source§fn cmp(&self, other: &Granularity) -> Ordering
fn cmp(&self, other: &Granularity) -> Ordering
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 PartialEq for Granularity
impl PartialEq for Granularity
Source§fn eq(&self, other: &Granularity) -> bool
fn eq(&self, other: &Granularity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Granularity
impl PartialOrd for Granularity
impl StructuralPartialEq for Granularity
Auto Trait Implementations§
impl Freeze for Granularity
impl RefUnwindSafe for Granularity
impl Send for Granularity
impl Sync for Granularity
impl Unpin for Granularity
impl UnsafeUnpin for Granularity
impl UnwindSafe for Granularity
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