Struct iso_8601::DateTime [−][src]
pub struct DateTime<D = YmdDate, T = GlobalTime> where
D: Datelike,
T: Timelike, { pub date: D, pub time: T, }
Fields
date: D
time: T
Trait Implementations
impl<D: Eq, T: Eq> Eq for DateTime<D, T> where
D: Datelike,
T: Timelike,
[src]
impl<D: Eq, T: Eq> Eq for DateTime<D, T> where
D: Datelike,
T: Timelike,
impl<D: PartialEq, T: PartialEq> PartialEq for DateTime<D, T> where
D: Datelike,
T: Timelike,
[src]
impl<D: PartialEq, T: PartialEq> PartialEq for DateTime<D, T> where
D: Datelike,
T: Timelike,
fn eq(&self, other: &DateTime<D, T>) -> bool
[src]
fn eq(&self, other: &DateTime<D, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DateTime<D, T>) -> bool
[src]
fn ne(&self, other: &DateTime<D, T>) -> bool
This method tests for !=
.
impl<D: Clone, T: Clone> Clone for DateTime<D, T> where
D: Datelike,
T: Timelike,
[src]
impl<D: Clone, T: Clone> Clone for DateTime<D, T> where
D: Datelike,
T: Timelike,
fn clone(&self) -> DateTime<D, T>
[src]
fn clone(&self) -> DateTime<D, T>
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)
Performs copy-assignment from source
. Read more
impl<D: Debug, T: Debug> Debug for DateTime<D, T> where
D: Datelike,
T: Timelike,
[src]
impl<D: Debug, T: Debug> Debug for DateTime<D, T> where
D: Datelike,
T: Timelike,
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 FromStr for DateTime<Date, GlobalTime<HmsTime>>
[src]
impl FromStr for DateTime<Date, GlobalTime<HmsTime>>
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 FromStr for DateTime<Date, GlobalTime<HmTime>>
[src]
impl FromStr for DateTime<Date, GlobalTime<HmTime>>
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 FromStr for DateTime<Date, GlobalTime<HTime>>
[src]
impl FromStr for DateTime<Date, GlobalTime<HTime>>
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 FromStr for DateTime<Date, LocalTime<HmsTime>>
[src]
impl FromStr for DateTime<Date, LocalTime<HmsTime>>
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 FromStr for DateTime<Date, LocalTime<HmTime>>
[src]
impl FromStr for DateTime<Date, LocalTime<HmTime>>
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 FromStr for DateTime<Date, LocalTime<HTime>>
[src]
impl FromStr for DateTime<Date, LocalTime<HTime>>
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 FromStr for DateTime<Date, AnyTime<HmsTime>>
[src]
impl FromStr for DateTime<Date, AnyTime<HmsTime>>
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 FromStr for DateTime<Date, AnyTime<HmTime>>
[src]
impl FromStr for DateTime<Date, AnyTime<HmTime>>
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 FromStr for DateTime<Date, AnyTime<HTime>>
[src]
impl FromStr for DateTime<Date, AnyTime<HTime>>
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 FromStr for DateTime<Date, ApproxGlobalTime>
[src]
impl FromStr for DateTime<Date, ApproxGlobalTime>
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 FromStr for DateTime<Date, ApproxLocalTime>
[src]
impl FromStr for DateTime<Date, ApproxLocalTime>
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 FromStr for DateTime<Date, ApproxAnyTime>
[src]
impl FromStr for DateTime<Date, ApproxAnyTime>
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 FromStr for DateTime<ApproxDate, GlobalTime<HmsTime>>
[src]
impl FromStr for DateTime<ApproxDate, GlobalTime<HmsTime>>
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 FromStr for DateTime<ApproxDate, GlobalTime<HmTime>>
[src]
impl FromStr for DateTime<ApproxDate, GlobalTime<HmTime>>
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 FromStr for DateTime<ApproxDate, GlobalTime<HTime>>
[src]
impl FromStr for DateTime<ApproxDate, GlobalTime<HTime>>
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 FromStr for DateTime<ApproxDate, LocalTime<HmsTime>>
[src]
impl FromStr for DateTime<ApproxDate, LocalTime<HmsTime>>
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 FromStr for DateTime<ApproxDate, LocalTime<HmTime>>
[src]
impl FromStr for DateTime<ApproxDate, LocalTime<HmTime>>
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 FromStr for DateTime<ApproxDate, LocalTime<HTime>>
[src]
impl FromStr for DateTime<ApproxDate, LocalTime<HTime>>
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 FromStr for DateTime<ApproxDate, AnyTime<HmsTime>>
[src]
impl FromStr for DateTime<ApproxDate, AnyTime<HmsTime>>
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 FromStr for DateTime<ApproxDate, AnyTime<HmTime>>
[src]
impl FromStr for DateTime<ApproxDate, AnyTime<HmTime>>
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 FromStr for DateTime<ApproxDate, AnyTime<HTime>>
[src]
impl FromStr for DateTime<ApproxDate, AnyTime<HTime>>
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 FromStr for DateTime<ApproxDate, ApproxGlobalTime>
[src]
impl FromStr for DateTime<ApproxDate, ApproxGlobalTime>
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 FromStr for DateTime<ApproxDate, ApproxLocalTime>
[src]
impl FromStr for DateTime<ApproxDate, ApproxLocalTime>
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 FromStr for DateTime<ApproxDate, ApproxAnyTime>
[src]
impl FromStr for DateTime<ApproxDate, ApproxAnyTime>
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<D, T> Valid for DateTime<D, T> where
D: Datelike + Valid,
T: Timelike + Valid,
[src]
impl<D, T> Valid for DateTime<D, T> where
D: Datelike + Valid,
T: Timelike + Valid,