[−][src]Struct rkv::store::multi::MultiStore
Methods
impl MultiStore
[src]
pub fn get<T: Readable, K: AsRef<[u8]>>(
self,
reader: &T,
k: K
) -> Result<Iter, StoreError>
[src]
self,
reader: &T,
k: K
) -> Result<Iter, StoreError>
Provides a cursor to all of the values for the duplicate entries that match this key
pub fn get_first<T: Readable, K: AsRef<[u8]>>(
self,
reader: &T,
k: K
) -> Result<Option<Value>, StoreError>
[src]
self,
reader: &T,
k: K
) -> Result<Option<Value>, StoreError>
Provides the first value that matches this key
pub fn put<K: AsRef<[u8]>>(
self,
writer: &mut Writer,
k: K,
v: &Value
) -> Result<(), StoreError>
[src]
self,
writer: &mut Writer,
k: K,
v: &Value
) -> Result<(), StoreError>
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<K: AsRef<[u8]>>(
self,
writer: &mut Writer,
k: K,
v: &Value,
flags: WriteFlags
) -> Result<(), StoreError>
[src]
self,
writer: &mut Writer,
k: K,
v: &Value,
flags: WriteFlags
) -> Result<(), StoreError>
pub fn delete_all<K: AsRef<[u8]>>(
self,
writer: &mut Writer,
k: K
) -> Result<(), StoreError>
[src]
self,
writer: &mut Writer,
k: K
) -> Result<(), StoreError>
pub fn delete<K: AsRef<[u8]>>(
self,
writer: &mut Writer,
k: K,
v: &Value
) -> Result<(), StoreError>
[src]
self,
writer: &mut Writer,
k: K,
v: &Value
) -> Result<(), StoreError>
pub fn clear(self, writer: &mut Writer) -> Result<(), StoreError>
[src]
Trait Implementations
impl Clone for MultiStore
[src]
fn clone(&self) -> MultiStore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MultiStore
[src]
Auto Trait Implementations
impl RefUnwindSafe for MultiStore
impl Send for MultiStore
impl Sync for MultiStore
impl Unpin for MultiStore
impl UnwindSafe for MultiStore
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,