pub enum PeriodKind {
Year,
Month,
Duration(Duration),
}
Expand description
Period kind.
Variants
Year
A year.
Month
A month.
Duration(Duration)
Duration.
Trait Implementations
sourceimpl Clone for PeriodKind
impl Clone for PeriodKind
sourcefn clone(&self) -> PeriodKind
fn clone(&self) -> PeriodKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PeriodKind
impl Debug for PeriodKind
sourceimpl Display for PeriodKind
impl Display for PeriodKind
sourceimpl Hash for PeriodKind
impl Hash for PeriodKind
sourceimpl PartialEq<PeriodKind> for PeriodKind
impl PartialEq<PeriodKind> for PeriodKind
sourceimpl PartialOrd<PeriodKind> for PeriodKind
impl PartialOrd<PeriodKind> for PeriodKind
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn 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 PeriodKind
impl Eq for PeriodKind
Auto Trait Implementations
impl RefUnwindSafe for PeriodKind
impl Send for PeriodKind
impl Sync for PeriodKind
impl Unpin for PeriodKind
impl UnwindSafe for PeriodKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more