pub struct RangeTransition {
pub when: i64,
pub zone_type: ZoneType,
}Expand description
A transition produced by Zone::transitions_for_range.
Unlike Transition, this carries the resolved ZoneType directly, since
transitions generated from the POSIX extend rule may name a type that does
not appear in the stored type table.
Fields§
§when: i64Unix timestamp at which the transition takes effect.
zone_type: ZoneTypeThe zone type in effect after the transition.
Trait Implementations§
Source§impl Clone for RangeTransition
impl Clone for RangeTransition
Source§fn clone(&self) -> RangeTransition
fn clone(&self) -> RangeTransition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RangeTransition
Source§impl Debug for RangeTransition
impl Debug for RangeTransition
impl Eq for RangeTransition
Source§impl PartialEq for RangeTransition
impl PartialEq for RangeTransition
Source§fn eq(&self, other: &RangeTransition) -> bool
fn eq(&self, other: &RangeTransition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RangeTransition
Auto Trait Implementations§
impl Freeze for RangeTransition
impl RefUnwindSafe for RangeTransition
impl Send for RangeTransition
impl Sync for RangeTransition
impl Unpin for RangeTransition
impl UnsafeUnpin for RangeTransition
impl UnwindSafe for RangeTransition
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