Skip to main content

Key

Trait Key 

Source
pub trait Key:
    Hash
    + Eq
    + Clone
    + Send
    + Sync
    + 'static { }
Expand description

Trait bound for types usable as keys in KeyStream. Must be hashable, comparable, cloneable, thread-safe, and 'static.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Hash + Eq + Clone + Send + Sync + 'static> Key for T