#[repr(i32)]pub enum Period {
UnknownPeriod = 0,
OneMinute = 1,
FiveMinute = 5,
FifteenMinute = 15,
ThirtyMinute = 30,
SixtyMinute = 60,
Day = 1_000,
Week = 2_000,
Month = 3_000,
Year = 4_000,
}
Variants§
UnknownPeriod = 0
OneMinute = 1
FiveMinute = 5
FifteenMinute = 15
ThirtyMinute = 30
SixtyMinute = 60
Day = 1_000
Week = 2_000
Month = 3_000
Year = 4_000
Implementations§
Trait Implementations§
§impl Ord for Period
impl Ord for Period
§impl PartialOrd for Period
impl PartialOrd for Period
§fn partial_cmp(&self, other: &Period) -> Option<Ordering>
fn partial_cmp(&self, other: &Period) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Period
impl Eq for Period
impl StructuralPartialEq for Period
Auto Trait Implementations§
impl Freeze for Period
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnwindSafe for Period
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