Trait HasLookupData

Source
pub trait HasLookupData: HasItemData
where 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§

Source

type Lookup: AsRef<[Id]>

The type to which the lookup hash table resolves.

Required Methods§

Source

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", so this trait is not object safe.

Implementors§