[][src]Struct sunrise_libtimezone::TimeTypeInfo

#[repr(C, align(8))]pub(crate) struct TimeTypeInfo {
    pub gmt_offset: i32,
    pub is_dst: bool,
    pub abbreviation_list_index: i32,
    pub is_std: bool,
    pub is_gmt: bool,
    padding: [u8; 2],
}

Represent a TimeZone type info.

This is used to store rules information in a time range.

Fields

gmt_offset: i32

The GMT offset of the time type info.

is_dst: bool

True if the time type info represent a Day Saving Time.

abbreviation_list_index: i32

The index inside the TimeZoneRule char array of the abbrevation c string representing this time type info.

is_std: bool

True if this represent a Standard Time Daylight.

is_gmt: bool

True if this represent a GMT time.

padding: [u8; 2]

Explicit padding.

Implementations

impl TimeTypeInfo[src]

pub fn new(gmt_offset: i32, is_dst: bool, abbreviation_list_index: i32) -> Self[src]

Create a new TimeTypeInfo.

Trait Implementations

impl Clone for TimeTypeInfo[src]

impl Copy for TimeTypeInfo[src]

impl Default for TimeTypeInfo[src]

impl PartialEq<TimeTypeInfo> for TimeTypeInfo[src]

Auto Trait Implementations

impl Send for TimeTypeInfo

impl Sync for TimeTypeInfo

impl Unpin for TimeTypeInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.