Enum Dst
pub enum Dst
An enum indicating whether a particular datetime is in daylight saving time (DST) or not.
Variants
-
No DST is not in effect. In other words, standard time is in effect.
-
Yes DST is in effect.
Implementations
impl Dst
fn is_dst(self) -> boolReturns true when this value is equal to
Dst::Yes.fn is_std(self) -> boolReturns true when this value is equal to
Dst::No.stdin this context refers to "standard time." That is, it is the offset from UTC used when DST is not in effect.
Trait Implementations
impl Clone for Dst
fn clone(&self) -> Self
impl Copy for Dst
impl Debug for Dst
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Dst
impl From<bool> for Dst
fn from(is_dst: bool) -> Dst
impl Hash for Dst
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for Dst
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for Dst
fn eq(&self, other: &Self) -> bool
impl PartialOrd for Dst
fn partial_cmp(&self, other: &Self) -> Option<Ordering>