pub enum PeriodKind {
Sec(i64),
Min(i64),
Hour(i64),
Day(i64),
Week(i64),
Month(i64),
Year(i64),
}Variants§
Implementations§
Source§impl PeriodKind
impl PeriodKind
pub fn print_time<W: WriteColor>( &self, writer: &mut W, padding: bool, ) -> MyResult<()>
Trait Implementations§
Source§impl Clone for PeriodKind
impl Clone for PeriodKind
Source§fn clone(&self) -> PeriodKind
fn clone(&self) -> PeriodKind
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 PeriodKind
Source§impl Debug for PeriodKind
impl Debug for PeriodKind
Source§impl PartialEq for PeriodKind
impl PartialEq for PeriodKind
impl StructuralPartialEq for PeriodKind
Auto Trait Implementations§
impl Freeze for PeriodKind
impl RefUnwindSafe for PeriodKind
impl Send for PeriodKind
impl Sync for PeriodKind
impl Unpin for PeriodKind
impl UnsafeUnpin for PeriodKind
impl UnwindSafe for PeriodKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more