Trait Key

Source
pub trait Key:
    Serialize
    + DeserializeOwned
    + Eq
    + Hash
    + Send
    + Sync { }
Expand description

Marker trait for value that can be used as a key in an index

You should generally not implement this trait as a blanket implementation will cover all types that conform.

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§

Source§

impl<T> Key for T