Struct rkv::store::single::SingleStore
source · pub struct SingleStore<D> { /* private fields */ }
Implementations§
source§impl<D> SingleStore<D>where
D: BackendDatabase,
impl<D> SingleStore<D>where D: BackendDatabase,
pub fn get<'r, R, K>( &self, reader: &'r R, k: K ) -> Result<Option<Value<'r>>, StoreError>where R: Readable<'r, Database = D>, K: AsRef<[u8]>,
pub fn put<T, K>( &self, writer: &mut Writer<T>, k: K, v: &Value<'_> ) -> Result<(), StoreError>where T: BackendRwTransaction<Database = D>, K: AsRef<[u8]>,
pub fn delete<T, K>( &self, writer: &mut Writer<T>, k: K ) -> Result<(), StoreError>where T: BackendRwTransaction<Database = D>, K: AsRef<[u8]>,
pub fn iter_start<'r, R, I, C>( &self, reader: &'r R ) -> Result<Iter<'r, I>, StoreError>where R: Readable<'r, Database = D, RoCursor = C>, I: BackendIter<'r>, C: BackendRoCursor<'r, Iter = I>,
pub fn iter_from<'r, R, I, C, K>( &self, reader: &'r R, k: K ) -> Result<Iter<'r, I>, StoreError>where R: Readable<'r, Database = D, RoCursor = C>, I: BackendIter<'r>, C: BackendRoCursor<'r, Iter = I>, K: AsRef<[u8]> + 'r,
pub fn clear<T>(&self, writer: &mut Writer<T>) -> Result<(), StoreError>where D: BackendDatabase, T: BackendRwTransaction<Database = D>,
Trait Implementations§
source§impl<D: Clone> Clone for SingleStore<D>
impl<D: Clone> Clone for SingleStore<D>
source§fn clone(&self) -> SingleStore<D>
fn clone(&self) -> SingleStore<D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<D: Debug> Debug for SingleStore<D>
impl<D: Debug> Debug for SingleStore<D>
source§impl<D: PartialEq> PartialEq for SingleStore<D>
impl<D: PartialEq> PartialEq for SingleStore<D>
source§fn eq(&self, other: &SingleStore<D>) -> bool
fn eq(&self, other: &SingleStore<D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<D: Copy> Copy for SingleStore<D>
impl<D: Eq> Eq for SingleStore<D>
impl<D> StructuralEq for SingleStore<D>
impl<D> StructuralPartialEq for SingleStore<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for SingleStore<D>where D: RefUnwindSafe,
impl<D> Send for SingleStore<D>where D: Send,
impl<D> Sync for SingleStore<D>where D: Sync,
impl<D> Unpin for SingleStore<D>where D: Unpin,
impl<D> UnwindSafe for SingleStore<D>where D: UnwindSafe,
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