pub struct LocalTimeOffsetEntry {
pub country_code: LangCode,
pub country_region_id: u8,
pub local_time_offset_negative: bool,
pub local_time_offset_bcd: u16,
pub time_of_change_raw: [u8; 5],
pub next_time_offset_bcd: u16,
}Expand description
One per-country offset entry.
Fields§
§country_code: LangCodeISO 3166 alpha country code.
country_region_id: u86-bit country_region_id for sub-national regions.
local_time_offset_negative: boolPolarity: false = offset is positive (local = UTC + offset), true = offset is negative (local = UTC − offset).
local_time_offset_bcd: u1616-bit BCD HHMM local time offset.
time_of_change_raw: [u8; 5]40-bit MJD+UTC raw bytes of the DST/offset transition moment.
next_time_offset_bcd: u1616-bit BCD HHMM next offset (applied after time_of_change).
Trait Implementations§
Source§impl Clone for LocalTimeOffsetEntry
impl Clone for LocalTimeOffsetEntry
Source§fn clone(&self) -> LocalTimeOffsetEntry
fn clone(&self) -> LocalTimeOffsetEntry
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 LocalTimeOffsetEntry
Source§impl Debug for LocalTimeOffsetEntry
impl Debug for LocalTimeOffsetEntry
impl Eq for LocalTimeOffsetEntry
Source§impl PartialEq for LocalTimeOffsetEntry
impl PartialEq for LocalTimeOffsetEntry
Source§fn eq(&self, other: &LocalTimeOffsetEntry) -> bool
fn eq(&self, other: &LocalTimeOffsetEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocalTimeOffsetEntry
impl Serialize for LocalTimeOffsetEntry
impl StructuralPartialEq for LocalTimeOffsetEntry
Auto Trait Implementations§
impl Freeze for LocalTimeOffsetEntry
impl RefUnwindSafe for LocalTimeOffsetEntry
impl Send for LocalTimeOffsetEntry
impl Sync for LocalTimeOffsetEntry
impl Unpin for LocalTimeOffsetEntry
impl UnsafeUnpin for LocalTimeOffsetEntry
impl UnwindSafe for LocalTimeOffsetEntry
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