pub enum TimeComponent {
Second = 1,
Minute = 2,
Hour = 3,
Day = 4,
Month = 5,
Year = 6,
}Variants§
Trait Implementations§
Source§impl Clone for TimeComponent
impl Clone for TimeComponent
Source§fn clone(&self) -> TimeComponent
fn clone(&self) -> TimeComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeComponent
impl Debug for TimeComponent
Source§impl Hash for TimeComponent
impl Hash for TimeComponent
Source§impl Ord for TimeComponent
impl Ord for TimeComponent
Source§fn cmp(&self, other: &TimeComponent) -> Ordering
fn cmp(&self, other: &TimeComponent) -> Ordering
1.21.0 · 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 TimeComponent
impl PartialEq for TimeComponent
Source§impl PartialOrd for TimeComponent
impl PartialOrd for TimeComponent
impl Copy for TimeComponent
impl Eq for TimeComponent
impl StructuralPartialEq for TimeComponent
Auto Trait Implementations§
impl Freeze for TimeComponent
impl RefUnwindSafe for TimeComponent
impl Send for TimeComponent
impl Sync for TimeComponent
impl Unpin for TimeComponent
impl UnwindSafe for TimeComponent
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