[−][src]Struct rkv::store::multi::MultiStore
Implementations
impl<D> MultiStore<D> where
D: BackendDatabase,
[src]
D: BackendDatabase,
pub fn get<'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,
[src]
&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,
Provides a cursor to all of the values for the duplicate entries that match this key
pub fn get_first<'r, R, K>(
&self,
reader: &'r R,
k: K
) -> Result<Option<Value<'r>>, StoreError> where
R: Readable<'r, Database = D>,
K: AsRef<[u8]>,
[src]
&self,
reader: &'r R,
k: K
) -> Result<Option<Value<'r>>, StoreError> where
R: Readable<'r, Database = D>,
K: AsRef<[u8]>,
Provides the first value that matches this key
pub fn put<T, K>(
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
[src]
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
Insert a value at the specified key.
This put will allow duplicate entries. If you wish to have duplicate entries
rejected, use the put_with_flags
function and specify NO_DUP_DATA
pub fn put_with_flags<T, K>(
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>,
flags: T::Flags
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
[src]
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>,
flags: T::Flags
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
pub fn delete_all<T, K>(
&self,
writer: &mut Writer<T>,
k: K
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
[src]
&self,
writer: &mut Writer<T>,
k: K
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
pub fn delete<T, K>(
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
[src]
&self,
writer: &mut Writer<T>,
k: K,
v: &Value<'_>
) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
K: AsRef<[u8]>,
pub fn clear<T>(&self, writer: &mut Writer<T>) -> Result<(), StoreError> where
T: BackendRwTransaction<Database = D>,
[src]
T: BackendRwTransaction<Database = D>,
Trait Implementations
impl<D: Clone> Clone for MultiStore<D>
[src]
pub fn clone(&self) -> MultiStore<D>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<D: Copy> Copy for MultiStore<D>
[src]
impl<D: Debug> Debug for MultiStore<D>
[src]
impl<D: Eq> Eq for MultiStore<D>
[src]
impl<D: PartialEq> PartialEq<MultiStore<D>> for MultiStore<D>
[src]
pub fn eq(&self, other: &MultiStore<D>) -> bool
[src]
pub fn ne(&self, other: &MultiStore<D>) -> bool
[src]
impl<D> StructuralEq for MultiStore<D>
[src]
impl<D> StructuralPartialEq for MultiStore<D>
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for MultiStore<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for MultiStore<D> where
D: Send,
D: Send,
impl<D> Sync for MultiStore<D> where
D: Sync,
D: Sync,
impl<D> Unpin for MultiStore<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for MultiStore<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,