reth_db::table

Trait Key

Source
pub trait Key:
    Encode
    + Decode
    + Ord
    + Clone
    + Serialize
    + for<'a> Deserialize<'a> { }
Expand description

Generic trait that enforces the database key to implement Encode and Decode.

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: Encode + Decode + Ord + Clone + Serialize + for<'a> Deserialize<'a>,