Trait Key

Source
pub trait Key<M>:
    Eq
    + Hash
    + Deref<Target = str> {
    // Required method
    fn metadata(&self) -> &M;
}
Expand description

JSON object key.

Required Methods§

Source

fn metadata(&self) -> &M

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.

Implementations on Foreign Types§

Source§

impl Key<()> for String

Source§

fn metadata(&self) -> &()

Implementors§