Enum iso_8601::ApproxDate [−][src]
pub enum ApproxDate<Y: Year = i16> { YMD(YmdDate<Y>), YM(YmDate<Y>), Y(YDate<Y>), C(CDate), WD(WdDate<Y>), W(WDate<Y>), O(ODate<Y>), }
Date representations with reduced accuracy
Variants
YMD(YmdDate<Y>)
YM(YmDate<Y>)
Y(YDate<Y>)
C(CDate)
WD(WdDate<Y>)
W(WDate<Y>)
O(ODate<Y>)
Trait Implementations
impl<Y: Eq + Year> Eq for ApproxDate<Y>
[src]
impl<Y: Eq + Year> Eq for ApproxDate<Y>
impl<Y: PartialEq + Year> PartialEq for ApproxDate<Y>
[src]
impl<Y: PartialEq + Year> PartialEq for ApproxDate<Y>
fn eq(&self, other: &ApproxDate<Y>) -> bool
[src]
fn eq(&self, other: &ApproxDate<Y>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ApproxDate<Y>) -> bool
[src]
fn ne(&self, other: &ApproxDate<Y>) -> bool
This method tests for !=
.
impl<Y: Clone + Year> Clone for ApproxDate<Y>
[src]
impl<Y: Clone + Year> Clone for ApproxDate<Y>
fn clone(&self) -> ApproxDate<Y>
[src]
fn clone(&self) -> ApproxDate<Y>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<Y: Debug + Year> Debug for ApproxDate<Y>
[src]
impl<Y: Debug + Year> Debug for ApproxDate<Y>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Y: Year> Datelike<Y> for ApproxDate<Y>
[src]
impl<Y: Year> Datelike<Y> for ApproxDate<Y>
impl FromStr for ApproxDate
[src]
impl FromStr for ApproxDate
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl<Y> Valid for ApproxDate<Y> where
Y: Year + Clone,
[src]
impl<Y> Valid for ApproxDate<Y> where
Y: Year + Clone,
impl<Y> From<Date<Y>> for ApproxDate<Y> where
Y: Year,
[src]
impl<Y> From<Date<Y>> for ApproxDate<Y> where
Y: Year,
Auto Trait Implementations
impl<Y> Send for ApproxDate<Y> where
Y: Send,
impl<Y> Send for ApproxDate<Y> where
Y: Send,
impl<Y> Sync for ApproxDate<Y> where
Y: Sync,
impl<Y> Sync for ApproxDate<Y> where
Y: Sync,