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) -> Self

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: &Self) -> 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,

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

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

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

impl<T> From<T> for Rule

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

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

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

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