pub struct Store<'a> { /* private fields */ }Expand description
Store accessor providing read-only access to the underlying store
Implementations§
Source§impl<'a> Store<'a>
impl<'a> Store<'a>
pub fn get(&self, key: &EncodedKey) -> Result<Option<EncodedValues>>
pub fn contains_key(&self, key: &EncodedKey) -> Result<bool>
pub fn prefix( &self, prefix: &EncodedKey, ) -> Result<Vec<(EncodedKey, EncodedValues)>>
pub fn range( &self, start: Bound<&EncodedKey>, end: Bound<&EncodedKey>, ) -> Result<Vec<(EncodedKey, EncodedValues)>>
Auto Trait Implementations§
impl<'a> Freeze for Store<'a>
impl<'a> RefUnwindSafe for Store<'a>
impl<'a> !Send for Store<'a>
impl<'a> !Sync for Store<'a>
impl<'a> Unpin for Store<'a>
impl<'a> !UnwindSafe for Store<'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