pub trait HasLookupData: HasItemDatawhere
Self: Sized,{
type Lookup: AsRef<[Id]>;
// Required method
fn get_mem_lookup() -> &'static HashMap<RoundLngLat, Self::Lookup>;
}Expand description
Trait that abstracts away getting the in-memory timezones / cache.
Required Associated Types§
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".