DatabaseHandle

Trait DatabaseHandle 

Source
pub trait DatabaseHandle {
    // Required method
    fn get<'a>(&'a self, key: H256) -> &'a [u8] ;
}
Expand description

An immutable database handle.

Required Methods§

Source

fn get<'a>(&'a self, key: H256) -> &'a [u8]

Get a raw value from the database.

Implementations on Foreign Types§

Source§

impl<'a> DatabaseHandle for &'a HashMap<H256, Vec<u8>>

Source§

fn get(&self, hash: H256) -> &[u8]

Implementors§