[][src]Struct rkv::store::multi::MultiStore

pub struct MultiStore { /* fields omitted */ }

Methods

impl MultiStore[src]

pub fn get<T: Readable, K: AsRef<[u8]>>(
    self,
    reader: &T,
    k: K
) -> Result<Iter, StoreError>
[src]

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]

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]

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]

pub fn delete_all<K: AsRef<[u8]>>(
    self,
    writer: &mut Writer,
    k: K
) -> Result<(), StoreError>
[src]

pub fn delete<K: AsRef<[u8]>>(
    self,
    writer: &mut Writer,
    k: K,
    v: &Value
) -> Result<(), StoreError>
[src]

pub fn clear(self, writer: &mut Writer) -> Result<(), StoreError>[src]

Trait Implementations

impl Clone for MultiStore[src]

impl Copy for MultiStore[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]