Struct tz::timezone::AlternateTime
source · [−]pub struct AlternateTime { /* private fields */ }Expand description
Transition rule representing alternate local time types
Implementations
sourceimpl AlternateTime
impl AlternateTime
sourcepub const fn new(
std: LocalTimeType,
dst: LocalTimeType,
dst_start: RuleDay,
dst_start_time: i32,
dst_end: RuleDay,
dst_end_time: i32
) -> Result<Self, TransitionRuleError>
pub const fn new(
std: LocalTimeType,
dst: LocalTimeType,
dst_start: RuleDay,
dst_start_time: i32,
dst_end: RuleDay,
dst_end_time: i32
) -> Result<Self, TransitionRuleError>
Construct a transition rule representing alternate local time types
sourcepub const fn std(&self) -> &LocalTimeType
pub const fn std(&self) -> &LocalTimeType
Returns local time type for standard time
sourcepub const fn dst(&self) -> &LocalTimeType
pub const fn dst(&self) -> &LocalTimeType
Returns local time type for Daylight Saving Time
sourcepub const fn dst_start_time(&self) -> i32
pub const fn dst_start_time(&self) -> i32
Returns local start day time of Daylight Saving Time, in seconds
sourcepub const fn dst_end_time(&self) -> i32
pub const fn dst_end_time(&self) -> i32
Returns local end day time of Daylight Saving Time, in seconds
Trait Implementations
sourceimpl Clone for AlternateTime
impl Clone for AlternateTime
sourcefn clone(&self) -> AlternateTime
fn clone(&self) -> AlternateTime
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AlternateTime
impl Debug for AlternateTime
sourceimpl PartialEq<AlternateTime> for AlternateTime
impl PartialEq<AlternateTime> for AlternateTime
sourcefn eq(&self, other: &AlternateTime) -> bool
fn eq(&self, other: &AlternateTime) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AlternateTime) -> bool
fn ne(&self, other: &AlternateTime) -> bool
This method tests for !=.
impl Copy for AlternateTime
impl Eq for AlternateTime
impl StructuralEq for AlternateTime
impl StructuralPartialEq for AlternateTime
Auto Trait Implementations
impl RefUnwindSafe for AlternateTime
impl Send for AlternateTime
impl Sync for AlternateTime
impl Unpin for AlternateTime
impl UnwindSafe for AlternateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more