Skip to main content

Key

Trait Key 

Source
pub trait Key:
    CodecShared
    + Clone
    + 'static
    + Eq
    + Ord
    + Hash
    + AsRef<[u8]>
    + Deref<Target = [u8]>
    + Debug { }
Expand description

Trait bound for key types used in QMDB operations. Satisfied by both fixed-size keys (Array types) and variable-length keys (Vec<u8>).

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
where T: CodecShared + Clone + 'static + Eq + Ord + Hash + AsRef<[u8]> + Deref<Target = [u8]> + Debug,