Trait TypedMapKey

Source
pub trait TypedMapKey<Marker = ()>: Eq + Hash {
    type Value: 'static;
}
Expand description

A trait that a key stored in the TypedMap must be implement. Marker may be used to implement multiple key-value type mappings.

Required Associated Types§

Source

type Value: 'static

Type of a value associated with the Key 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§