[−][src]Struct orga::collections::Map
A map data structure.
Implementations
impl<S, K, V> Map<S, K, V> where
S: Store,
K: Encode + Decode,
V: Encode + Decode,
[src]
S: Store,
K: Encode + Decode,
V: Encode + Decode,
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]
S: Store + Iter<'a, 'b>,
K: Encode + Decode,
V: Encode + Decode,
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]
S: Store,
K: Encode + Decode,
V: Encode + Decode,
fn wrap_store(store: S) -> Result<Self>
[src]
Auto Trait Implementations
impl<S, K, V> RefUnwindSafe for Map<S, K, V> where
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<S, K, V> Send for Map<S, K, V> where
K: Send,
S: Send,
V: Send,
K: Send,
S: Send,
V: Send,
impl<S, K, V> Sync for Map<S, K, V> where
K: Sync,
S: Sync,
V: Sync,
K: Sync,
S: Sync,
V: Sync,
impl<S, K, V> Terminated for Map<S, K, V> where
K: Terminated,
S: Terminated,
V: Terminated,
K: Terminated,
S: Terminated,
V: Terminated,
impl<S, K, V> Unpin for Map<S, K, V> where
K: Unpin,
S: Unpin,
V: Unpin,
K: Unpin,
S: Unpin,
V: Unpin,
impl<S, K, V> UnwindSafe for Map<S, K, V> where
K: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
S: UnwindSafe,
V: 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,
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, 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>,