pub struct AlternateTime { /* private fields */ }
Expand description
Transition rule representing alternate local time types
Implementations§
Source§impl 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§
Source§impl Clone for AlternateTime
impl Clone for AlternateTime
Source§fn clone(&self) -> AlternateTime
fn clone(&self) -> AlternateTime
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AlternateTime
impl Debug for AlternateTime
Source§impl PartialEq for AlternateTime
impl PartialEq for AlternateTime
impl Copy for AlternateTime
impl Eq for AlternateTime
impl StructuralPartialEq for AlternateTime
Auto Trait Implementations§
impl Freeze for AlternateTime
impl RefUnwindSafe for AlternateTime
impl Send for AlternateTime
impl Sync for AlternateTime
impl Unpin for AlternateTime
impl UnwindSafe for AlternateTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more