pub struct Db { /* private fields */ }
Implementations
sourceimpl Db
impl Db
pub fn with_columns(path: &Path, num_columns: u8) -> Result<Db>
pub fn get(&self, col: u8, key: &[u8]) -> Result<Option<Vec<u8>>>
pub fn get_size(&self, col: u8, key: &[u8]) -> Result<Option<u32>>
pub fn commit<I, K>(&self, tx: I) -> Result<()> where
I: IntoIterator<Item = (u8, K, Option<Vec<u8>>)>,
K: AsRef<[u8]>,
pub fn num_columns(&self) -> u8
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more