pub struct NedTimezone {
pub id: usize,
pub identifier: EncodableOptionString,
pub description: EncodableString,
pub dst_description: EncodableOptionString,
pub offset: EncodableString,
pub zone: f32,
pub raw_offset: i32,
pub geometry: EncodableGeometry,
}
Expand description
A representation of the Natural Earth Data
geojson
geojson::Feature
s.
Fields§
§id: usize
The index of the NedTimezone
in the global static cache.
This is is not stable across builds or new data sets. It is merely unique during a single build.
identifier: EncodableOptionString
The identifier
of the NedTimezone
(e.g., America/Los_Angeles
).
Essentially, it is the IANA TZ identifier.
description: EncodableString
The description
of the NedTimezone
(e.g., the countries affected).
dst_description: EncodableOptionString
The dst_description
of the NedTimezone
(i.e., daylight savings time information).
offset: EncodableString
The offset
of the NedTimezone
(e.g., UTC-8:00
).
zone: f32
The zone_num
of the NedTimezone
(e.g., -8.0
).
raw_offset: i32
The raw_offset
of the NedTimezone
(e.g., -28800
).
geometry: EncodableGeometry
The geometry of the NedTimezone
.
Trait Implementations§
Source§impl CanGetGeoJsonFeaturesFromSource for NedTimezone
impl CanGetGeoJsonFeaturesFromSource for NedTimezone
Source§fn get_geojson_features_from_source() -> FeatureCollection
fn get_geojson_features_from_source() -> FeatureCollection
Get the GeoJSON features from a source.
Source§impl CanPerformGeoLookup for NedTimezone
impl CanPerformGeoLookup for NedTimezone
Source§fn lookup(xf: Float, yf: Float) -> Vec<&'static Self>
fn lookup(xf: Float, yf: Float) -> Vec<&'static Self>
Get the cache-driven item for a given longitude (x) and latitude (y). Read more
Source§fn lookup_slow(xf: Float, yf: Float) -> Vec<&'static Self>
fn lookup_slow(xf: Float, yf: Float) -> Vec<&'static Self>
Get the exact item for a given longitude (x) and latitude (y).
Source§fn memory_data_to_geojson() -> String
fn memory_data_to_geojson() -> String
Gets the geojson representation of the memory cache.
Source§fn get_lookup_suggestions(
x: RoundDegree,
y: RoundDegree,
) -> Option<Vec<&'static Self>>
fn get_lookup_suggestions( x: RoundDegree, y: RoundDegree, ) -> Option<Vec<&'static Self>>
Get value from the static memory cache.
Source§impl Debug for NedTimezone
impl Debug for NedTimezone
Source§impl From<&'static NedTimezone> for NedTimezoneResponse1
impl From<&'static NedTimezone> for NedTimezoneResponse1
Source§fn from(value: &'static NedTimezone) -> NedTimezoneResponse1
fn from(value: &'static NedTimezone) -> NedTimezoneResponse1
Converts to this type from the input type.
Source§impl HasGeometry for NedTimezone
impl HasGeometry for NedTimezone
Source§impl HasItemData for NedTimezone
impl HasItemData for NedTimezone
Source§fn get_mem_items() -> &'static ConcreteVec<NedTimezone>
fn get_mem_items() -> &'static ConcreteVec<NedTimezone>
Gets the items from the in-memory cache for the given type.
Source§impl HasLookupData for NedTimezone
impl HasLookupData for NedTimezone
Source§type Lookup = EncodableIds
type Lookup = EncodableIds
The type to which the lookup hash table resolves.
Source§fn get_mem_lookup() -> &'static HashMap<RoundLngLat, Self::Lookup>
fn get_mem_lookup() -> &'static HashMap<RoundLngLat, Self::Lookup>
Gets the lookup hash table from the in-memory cache for the given type.
Source§impl HasProperties for NedTimezone
impl HasProperties for NedTimezone
Source§fn properties(&self) -> Map<String, Value>
fn properties(&self) -> Map<String, Value>
Get the properties of the
HasProperties
.Source§impl IsTimezone for NedTimezone
impl IsTimezone for NedTimezone
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Get the
identifier
of the IsTimezone
.Source§impl PartialEq for NedTimezone
impl PartialEq for NedTimezone
Auto Trait Implementations§
impl Freeze for NedTimezone
impl RefUnwindSafe for NedTimezone
impl Send for NedTimezone
impl Sync for NedTimezone
impl Unpin for NedTimezone
impl UnwindSafe for NedTimezone
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToGeoJsonFeature for Twhere
T: HasGeometry + HasProperties,
impl<T> ToGeoJsonFeature for Twhere
T: HasGeometry + HasProperties,
Source§fn to_feature(&self) -> Feature
fn to_feature(&self) -> Feature
Convert the type to GeoJSON.