#[repr(u8)]pub enum Dataset {
Now = 0,
Since1970 = 1,
All = 2,
NowLandOnly = 4,
Since1970LandOnly = 5,
AllLandOnly = 6,
}Expand description
The dataset an asset was built from, naming a
timezone-boundary-builder release as a zone set × ocean coverage
pair. The zone set trades zone count for historical fidelity: now
and 1970 merge zones whose rules are identical since that date,
and all keeps every distinct tzid. Ocean coverage decides whether
maritime timezones tile the rest of the planet or queries at sea
return None. (The discriminants keep the wire bitfield: the zone
set lives in bits 0–1, and a set bit 2 means land-only.)
Variants§
Now = 0
Zones whose rules are identical from today onward are merged and the oceans are covered. This is the smallest set, and the preset default.
Since1970 = 1
Zones identical since 1970 are merged and the oceans are covered, which is enough to resolve any post-1970 civil time correctly.
All = 2
Every distinct tzid is kept and the oceans are covered, giving full historical fidelity; this is the largest set.
NowLandOnly = 4
This is Now without maritime zones, so queries at sea return
None.
Since1970LandOnly = 5
This is Since1970 without maritime zones.
AllLandOnly = 6
This is All without maritime zones.
Implementations§
Source§impl Dataset
impl Dataset
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
Returns the canonical dataset name (now, 1970, or all, with
a land- prefix for the land-only variants), the spelling the
builder’s dataset parser accepts.
Sourcepub const fn zone_set(self) -> &'static str
pub const fn zone_set(self) -> &'static str
The zone-set half of the name ("now", "1970", or "all"),
which picks how aggressively zones with identical rules are
merged.
Sourcepub const fn oceans(self) -> bool
pub const fn oceans(self) -> bool
Whether maritime timezones cover the oceans (false names the
land- releases).
Trait Implementations§
impl Copy for Dataset
impl Eq for Dataset
impl StructuralPartialEq for Dataset
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnsafeUnpin for Dataset
impl UnwindSafe for Dataset
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.