#[repr(i32)]pub enum IntervalUnit {
Nanosecond = 1,
Microsecond = 2,
Millisecond = 3,
Second = 4,
Minute = 5,
Hour = 6,
Day = 7,
Week = 8,
Month = 9,
Quarter = 10,
Year = 11,
}Expand description
Unit of an Interval type.
Every Interval* type parses to Kind::Interval; unit is metadata on
type, reported by TypeRef::interval_unit.
Variants§
Nanosecond = 1
Microsecond = 2
Millisecond = 3
Second = 4
Minute = 5
Hour = 6
Day = 7
Week = 8
Month = 9
Quarter = 10
Year = 11
Trait Implementations§
Source§impl Clone for IntervalUnit
impl Clone for IntervalUnit
impl Copy for IntervalUnit
Source§impl Debug for IntervalUnit
impl Debug for IntervalUnit
impl Eq for IntervalUnit
Source§impl PartialEq for IntervalUnit
impl PartialEq for IntervalUnit
impl StructuralPartialEq for IntervalUnit
Auto Trait Implementations§
impl Freeze for IntervalUnit
impl RefUnwindSafe for IntervalUnit
impl Send for IntervalUnit
impl Sync for IntervalUnit
impl Unpin for IntervalUnit
impl UnsafeUnpin for IntervalUnit
impl UnwindSafe for IntervalUnit
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