pub enum TemporalUnit {
Day,
Week,
Month,
Year,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TemporalUnit
impl Clone for TemporalUnit
Source§fn clone(&self) -> TemporalUnit
fn clone(&self) -> TemporalUnit
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 moreSource§impl Debug for TemporalUnit
impl Debug for TemporalUnit
Source§impl Default for TemporalUnit
impl Default for TemporalUnit
Source§fn default() -> TemporalUnit
fn default() -> TemporalUnit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemporalUnit
impl<'de> Deserialize<'de> for TemporalUnit
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 TemporalUnit
impl Display for TemporalUnit
Source§impl FromStr for TemporalUnit
impl FromStr for TemporalUnit
Source§impl PartialEq for TemporalUnit
impl PartialEq for TemporalUnit
Source§fn eq(&self, other: &TemporalUnit) -> bool
fn eq(&self, other: &TemporalUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TemporalUnit
impl Serialize for TemporalUnit
Source§impl VariantArray for TemporalUnit
impl VariantArray for TemporalUnit
impl Copy for TemporalUnit
impl Eq for TemporalUnit
impl StructuralPartialEq for TemporalUnit
Auto Trait Implementations§
impl Freeze for TemporalUnit
impl RefUnwindSafe for TemporalUnit
impl Send for TemporalUnit
impl Sync for TemporalUnit
impl Unpin for TemporalUnit
impl UnsafeUnpin for TemporalUnit
impl UnwindSafe for TemporalUnit
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