Struct Dst

pub struct Dst { pub abbrev: Abbreviation, pub offset: Offset, pub rule: Rule }

The time zone transition rule along with its abbreviation and offset.

Fields

abbrev: Abbreviation

The abbreviation to assign to civil datetimes when the daylight saving time rule is satisfied.

offset: Offset

The offset from UTC that civil datetimes get when the daylight saving time rule is satisfied.

rule: Rule

The actual rule.

Trait Implementations

impl Clone for Dst

fn clone(&self) -> Dst

impl Debug for Dst

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Dst

impl PartialEq for Dst

fn eq(&self, other: &Dst) -> bool

impl StructuralPartialEq for Dst

Auto Trait Implementations

impl Freeze for Dst

impl RefUnwindSafe for Dst

impl Send for Dst

impl Sync for Dst

impl Unpin for Dst

impl UnsafeUnpin for Dst

impl UnwindSafe for Dst

Blanket Implementations

impl<T> Any for Dst where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Dst where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Dst where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Dst where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Dst

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Dst where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Dst where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Dst where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for Dst where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>