Enum iso_8601::AnyTime [−][src]
pub enum AnyTime<N = HmsTime> where
N: NaiveTime, { Global(GlobalTime<N>), Local(LocalTime<N>), }
Variants
Global(GlobalTime<N>)
Local(LocalTime<N>)
Trait Implementations
impl<N: PartialEq> PartialEq for AnyTime<N> where
N: NaiveTime,
[src]
impl<N: PartialEq> PartialEq for AnyTime<N> where
N: NaiveTime,
fn eq(&self, other: &AnyTime<N>) -> bool
[src]
fn eq(&self, other: &AnyTime<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AnyTime<N>) -> bool
[src]
fn ne(&self, other: &AnyTime<N>) -> bool
This method tests for !=
.
impl<N: Clone> Clone for AnyTime<N> where
N: NaiveTime,
[src]
impl<N: Clone> Clone for AnyTime<N> where
N: NaiveTime,
fn clone(&self) -> AnyTime<N>
[src]
fn clone(&self) -> AnyTime<N>
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<N: Debug> Debug for AnyTime<N> where
N: NaiveTime,
[src]
impl<N: Debug> Debug for AnyTime<N> where
N: NaiveTime,
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<N: NaiveTime> Timelike for AnyTime<N>
[src]
impl<N: NaiveTime> Timelike for AnyTime<N>
impl FromStr for AnyTime<HmsTime>
[src]
impl FromStr for 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 AnyTime<HmTime>
[src]
impl FromStr for 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 AnyTime<HTime>
[src]
impl FromStr for 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<N> Valid for AnyTime<N> where
N: NaiveTime + Valid,
[src]
impl<N> Valid for AnyTime<N> where
N: NaiveTime + Valid,
impl From<AnyTime<HmsTime>> for AnyTime<HmTime>
[src]
impl From<AnyTime<HmsTime>> for AnyTime<HmTime>
impl From<AnyTime<HmsTime>> for AnyTime<HTime>
[src]
impl From<AnyTime<HmsTime>> for AnyTime<HTime>
impl From<AnyTime<HmTime>> for AnyTime<HTime>
[src]
impl From<AnyTime<HmTime>> for AnyTime<HTime>