Trait Key

Source
pub trait Key<K>: Hash + Eq {
    // Required method
    fn key(&self) -> &K;
}
Expand description

Key is trait for interval key.

Required Methods§

Source

fn key(&self) -> &K

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§