pub struct OffsetInfo {
pub offset: i32,
pub abbrev: &'static str,
pub is_gap: bool,
pub gap_size: i64,
}Fields§
§offset: i32The offset from UTC in seconds (positive = east of UTC).
abbrev: &'static strTime zone abbreviation in effect (e.g. “EDT”, “GMT”).
is_gap: boolWhether the requested local time falls in a gap (spring-forward).
gap_size: i64Size of the gap in seconds (only meaningful when is_gap == true).
Trait Implementations§
Source§impl Clone for OffsetInfo
impl Clone for OffsetInfo
Source§fn clone(&self) -> OffsetInfo
fn clone(&self) -> OffsetInfo
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 moreSource§impl Debug for OffsetInfo
impl Debug for OffsetInfo
impl Copy for OffsetInfo
Auto Trait Implementations§
impl Freeze for OffsetInfo
impl RefUnwindSafe for OffsetInfo
impl Send for OffsetInfo
impl Sync for OffsetInfo
impl Unpin for OffsetInfo
impl UnsafeUnpin for OffsetInfo
impl UnwindSafe for OffsetInfo
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