pub struct OsmTimezone {
pub id: usize,
pub identifier: EncodableString,
pub geometry: EncodableGeometry,
}Expand description
A representation of the OpenStreetMap
geojson
geojson::Features.
Fields§
§id: usizeThe index of the OsmTimezone 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: EncodableStringThe identifier of the OsmTimezone (e.g., America/Los_Angeles).
Essentially, it is the IANA TZ identifier.
geometry: EncodableGeometryThe geometry of the OsmTimezone.
Trait Implementations§
Source§impl CanGetGeoJsonFeaturesFromSource for OsmTimezone
Available on non-target_family=wasm only.
impl CanGetGeoJsonFeaturesFromSource for OsmTimezone
Available on non-
target_family=wasm only.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 OsmTimezone
impl CanPerformGeoLookup for OsmTimezone
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 OsmTimezone
impl Debug for OsmTimezone
Source§impl From<&'static OsmTimezone> for OsmTimezoneResponse1
Available on crate feature tz-osm only.
impl From<&'static OsmTimezone> for OsmTimezoneResponse1
Available on crate feature
tz-osm only.Source§fn from(value: &'static OsmTimezone) -> OsmTimezoneResponse1
fn from(value: &'static OsmTimezone) -> OsmTimezoneResponse1
Converts to this type from the input type.
Source§impl HasGeometry for OsmTimezone
impl HasGeometry for OsmTimezone
Source§impl HasItemData for OsmTimezone
impl HasItemData for OsmTimezone
Source§fn get_mem_items() -> &'static ConcreteVec<OsmTimezone>
fn get_mem_items() -> &'static ConcreteVec<OsmTimezone>
Gets the items from the in-memory cache for the given type.
Source§impl HasLookupData for OsmTimezone
impl HasLookupData for OsmTimezone
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 OsmTimezone
impl HasProperties for OsmTimezone
Source§fn properties(&self) -> Map<String, Value>
fn properties(&self) -> Map<String, Value>
Get the properties of the
HasProperties.Source§impl IsTimezone for OsmTimezone
impl IsTimezone for OsmTimezone
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Get the
identifier of the IsTimezone.Source§impl PartialEq for OsmTimezone
impl PartialEq for OsmTimezone
Auto Trait Implementations§
impl Freeze for OsmTimezone
impl RefUnwindSafe for OsmTimezone
impl Send for OsmTimezone
impl Sync for OsmTimezone
impl Unpin for OsmTimezone
impl UnwindSafe for OsmTimezone
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.