Struct rkv::store::integer::IntegerStore
source · pub struct IntegerStore<D, K> { /* private fields */ }
Implementations§
source§impl<D, K> IntegerStore<D, K>where
D: BackendDatabase,
K: PrimitiveInt,
impl<D, K> IntegerStore<D, K>where D: BackendDatabase, K: PrimitiveInt,
pub fn get<'r, R>( &self, reader: &'r R, k: K ) -> Result<Option<Value<'r>>, StoreError>where R: Readable<'r, Database = D>,
pub fn put<T>( &self, writer: &mut Writer<T>, k: K, v: &Value<'_> ) -> Result<(), StoreError>where T: BackendRwTransaction<Database = D>,
pub fn delete<T>(&self, writer: &mut Writer<T>, k: K) -> Result<(), StoreError>where T: BackendRwTransaction<Database = D>,
pub fn clear<T>(&self, writer: &mut Writer<T>) -> Result<(), StoreError>where T: BackendRwTransaction<Database = D>,
Trait Implementations§
source§impl<D: Clone, K: Clone> Clone for IntegerStore<D, K>
impl<D: Clone, K: Clone> Clone for IntegerStore<D, K>
source§fn clone(&self) -> IntegerStore<D, K>
fn clone(&self) -> IntegerStore<D, K>
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: PartialEq, K: PartialEq> PartialEq for IntegerStore<D, K>
impl<D: PartialEq, K: PartialEq> PartialEq for IntegerStore<D, K>
source§fn eq(&self, other: &IntegerStore<D, K>) -> bool
fn eq(&self, other: &IntegerStore<D, K>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<D: Copy, K: Copy> Copy for IntegerStore<D, K>
impl<D: Eq, K: Eq> Eq for IntegerStore<D, K>
impl<D, K> StructuralEq for IntegerStore<D, K>
impl<D, K> StructuralPartialEq for IntegerStore<D, K>
Auto Trait Implementations§
impl<D, K> RefUnwindSafe for IntegerStore<D, K>where D: RefUnwindSafe, K: RefUnwindSafe,
impl<D, K> Send for IntegerStore<D, K>where D: Send, K: Send,
impl<D, K> Sync for IntegerStore<D, K>where D: Sync, K: Sync,
impl<D, K> Unpin for IntegerStore<D, K>where D: Unpin, K: Unpin,
impl<D, K> UnwindSafe for IntegerStore<D, K>where D: UnwindSafe, K: 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