Struct DayTime

pub struct DayTime { pub date: Day, pub time: TransitionCivilTime }

The day of a year and the time from that day on which a time zone transition occurs.

Fields

date: Day

The way to determine the day of the year.

time: TransitionCivilTime

The civil time on the day when the offset for civil time changes.

Trait Implementations

impl Clone for DayTime

fn clone(&self) -> DayTime

impl Copy for DayTime

impl Debug for DayTime

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

impl Eq for DayTime

impl PartialEq for DayTime

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

impl StructuralPartialEq for DayTime

Auto Trait Implementations

impl Freeze for DayTime

impl RefUnwindSafe for DayTime

impl Send for DayTime

impl Sync for DayTime

impl Unpin for DayTime

impl UnsafeUnpin for DayTime

impl UnwindSafe for DayTime

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for DayTime

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T, U> Into<U> for DayTime 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 DayTime 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 DayTime where U: TryFrom<T>,

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