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<'de> Deserialize<'de> for PeriodKind
impl<'de> Deserialize<'de> for PeriodKind
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§impl PartialOrd for PeriodKind
impl PartialOrd for PeriodKind
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 moresource§impl Serialize for PeriodKind
impl Serialize for PeriodKind
impl 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