Skip to main content

KeyValueDbTraitRead

Trait KeyValueDbTraitRead 

Source
pub trait KeyValueDbTraitRead: KeyValueDbTypes {
    // Required method
    fn get(&self, key: &[u8]) -> Result<Option<Self::ValueType>>;

    // Provided method
    fn get_with_number_key(&self, key: i64) -> Result<Option<Self::ValueType>> { ... }
}

Required Methods§

Source

fn get(&self, key: &[u8]) -> Result<Option<Self::ValueType>>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§