pub struct StackDB<'l, A: Allocator<'l>> { /* private fields */ }Implementations§
source§impl<'l, A: Allocator<'l>> StackDB<'l, A>
impl<'l, A: Allocator<'l>> StackDB<'l, A>
sourcepub fn new(alloc: A) -> Self
pub fn new(alloc: A) -> Self
creates a database interface; either loads an existing db or creates a new one.
sourcepub fn read(&mut self, addr: Range<u64>) -> Result<Box<[u8]>, Error>
pub fn read(&mut self, addr: Range<u64>) -> Result<Box<[u8]>, Error>
Reads data from either the heap or disk layers
Trait Implementations§
Auto Trait Implementations§
impl<'l, A> RefUnwindSafe for StackDB<'l, A>
impl<'l, A> Send for StackDB<'l, A>
impl<'l, A> Sync for StackDB<'l, A>
impl<'l, A> Unpin for StackDB<'l, A>
impl<'l, A> UnwindSafe for StackDB<'l, A>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more