[][src]Struct orga::collections::Map

pub struct Map<S, K, V> where
    S: Store,
    K: Encode + Decode,
    V: Encode + Decode
{ /* fields omitted */ }

A map data structure.

Implementations

impl<S, K, V> Map<S, K, V> where
    S: Store,
    K: Encode + Decode,
    V: Encode + Decode
[src]

pub fn insert(&mut self, key: K, value: V) -> Result<()>[src]

pub fn delete<B: Borrow<K>>(&mut self, key: B) -> Result<()>[src]

pub fn get<B: Borrow<K>>(&self, key: B) -> Result<Option<V>>[src]

impl<'a, 'b: 'a, S, K, V> Map<S, K, V> where
    S: Store + Iter<'a, 'b>,
    K: Encode + Decode,
    V: Encode + Decode
[src]

pub fn iter_from(&'a self, start: &K) -> Result<Iter<'a, 'b, S::Iter, K, V>>[src]

pub fn iter(&'a self) -> Iter<'a, 'b, S::Iter, K, V>[src]

Trait Implementations

impl<S, K, V> State<S> for Map<S, K, V> where
    S: Store,
    K: Encode + Decode,
    V: Encode + Decode
[src]

Auto Trait Implementations

impl<S, K, V> RefUnwindSafe for Map<S, K, V> where
    K: RefUnwindSafe,
    S: RefUnwindSafe,
    V: RefUnwindSafe

impl<S, K, V> Send for Map<S, K, V> where
    K: Send,
    S: Send,
    V: Send

impl<S, K, V> Sync for Map<S, K, V> where
    K: Sync,
    S: Sync,
    V: Sync

impl<S, K, V> Terminated for Map<S, K, V> where
    K: Terminated,
    S: Terminated,
    V: Terminated

impl<S, K, V> Unpin for Map<S, K, V> where
    K: Unpin,
    S: Unpin,
    V: Unpin

impl<S, K, V> UnwindSafe for Map<S, K, V> where
    K: UnwindSafe,
    S: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.