xcm_primitives::get_by_key

Trait GetByKey

Source
pub trait GetByKey<Key, Value> {
    // Required method
    fn get(k: &Key) -> Value;
}
Expand description

A trait for querying a value by a key.

Required Methods§

Source

fn get(k: &Key) -> Value

Return the value.

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§