Struct Rule

pub struct Rule { pub start: DayTime, pub end: DayTime }

A time zone transition rule.

This spells out a "range" of datetimes within a calendar year that should get a special daylight saving time offset from UTC.

Fields

start: DayTime

The start of the time zone transition (e.g., daylight saving time).

end: DayTime

The end of the time zone transition (e.g., daylight saving time).

Trait Implementations

impl Clone for Rule

fn clone(&self) -> Rule

impl Copy for Rule

impl Debug for Rule

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

impl Eq for Rule

impl PartialEq for Rule

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

impl StructuralPartialEq for Rule

Auto Trait Implementations

impl Freeze for Rule

impl RefUnwindSafe for Rule

impl Send for Rule

impl Sync for Rule

impl Unpin for Rule

impl UnsafeUnpin for Rule

impl UnwindSafe for Rule

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for Rule

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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