Struct iso_8601::GlobalTime [−][src]
pub struct GlobalTime<N = HmsTime> where
N: NaiveTime, { pub local: LocalTime<N>, pub timezone: i16, }
Local time with timezone (4.2.4)
Fields
local: LocalTime<N>
timezone: i16
Difference from UTC in minutes (4.2.5.2)
Trait Implementations
impl<N: PartialEq> PartialEq for GlobalTime<N> where
N: NaiveTime,
[src]
impl<N: PartialEq> PartialEq for GlobalTime<N> where
N: NaiveTime,
fn eq(&self, other: &GlobalTime<N>) -> bool
[src]
fn eq(&self, other: &GlobalTime<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GlobalTime<N>) -> bool
[src]
fn ne(&self, other: &GlobalTime<N>) -> bool
This method tests for !=
.
impl<N: Clone> Clone for GlobalTime<N> where
N: NaiveTime,
[src]
impl<N: Clone> Clone for GlobalTime<N> where
N: NaiveTime,
fn clone(&self) -> GlobalTime<N>
[src]
fn clone(&self) -> GlobalTime<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 GlobalTime<N> where
N: NaiveTime,
[src]
impl<N: Debug> Debug for GlobalTime<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 GlobalTime<N>
[src]
impl<N: NaiveTime> Timelike for GlobalTime<N>
impl FromStr for GlobalTime<HmsTime>
[src]
impl FromStr for 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 GlobalTime<HmTime>
[src]
impl FromStr for 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 GlobalTime<HTime>
[src]
impl FromStr for 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<N> Valid for GlobalTime<N> where
N: NaiveTime + Valid,
[src]
impl<N> Valid for GlobalTime<N> where
N: NaiveTime + Valid,
impl From<GlobalTime<HmsTime>> for GlobalTime<HmTime>
[src]
impl From<GlobalTime<HmsTime>> for GlobalTime<HmTime>
fn from(t: GlobalTime<HmsTime>) -> Self
[src]
fn from(t: GlobalTime<HmsTime>) -> Self
Performs the conversion.
impl From<GlobalTime<HmsTime>> for GlobalTime<HTime>
[src]
impl From<GlobalTime<HmsTime>> for GlobalTime<HTime>
fn from(t: GlobalTime<HmsTime>) -> Self
[src]
fn from(t: GlobalTime<HmsTime>) -> Self
Performs the conversion.
impl From<GlobalTime<HmTime>> for GlobalTime<HTime>
[src]
impl From<GlobalTime<HmTime>> for GlobalTime<HTime>
fn from(t: GlobalTime<HmTime>) -> Self
[src]
fn from(t: GlobalTime<HmTime>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<N> Send for GlobalTime<N> where
N: Send,
impl<N> Send for GlobalTime<N> where
N: Send,
impl<N> Sync for GlobalTime<N> where
N: Sync,
impl<N> Sync for GlobalTime<N> where
N: Sync,