Enum exc_types::PeriodKind
source · pub enum PeriodKind {
Year,
Month,
Duration(Duration),
}Expand description
Period kind.
Variants§
Trait Implementations§
source§impl Clone for PeriodKind
impl Clone for PeriodKind
source§fn clone(&self) -> PeriodKind
fn clone(&self) -> PeriodKind
Returns a copy 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 PeriodKind
impl Debug for PeriodKind
source§impl Display for PeriodKind
impl Display for PeriodKind
source§impl Hash for PeriodKind
impl Hash for PeriodKind
source§impl PartialEq for PeriodKind
impl PartialEq for PeriodKind
source§fn eq(&self, other: &PeriodKind) -> bool
fn eq(&self, other: &PeriodKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PeriodKind
impl PartialOrd for PeriodKind
source§fn partial_cmp(&self, other: &PeriodKind) -> Option<Ordering>
fn partial_cmp(&self, other: &PeriodKind) -> 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 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§
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