pub struct SingleStore<D> { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<D: Clone> Clone for SingleStore<D>
impl<D: Clone> Clone for SingleStore<D>
sourcefn clone(&self) -> SingleStore<D>
fn clone(&self) -> SingleStore<D>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<D: Debug> Debug for SingleStore<D>
impl<D: Debug> Debug for SingleStore<D>
sourceimpl<D: PartialEq> PartialEq<SingleStore<D>> for SingleStore<D>
impl<D: PartialEq> PartialEq<SingleStore<D>> for SingleStore<D>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SingleStore<D>) -> bool
fn ne(&self, other: &SingleStore<D>) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more