Struct lending_library::LendingLibrary
[−]
[src]
pub struct LendingLibrary<K, V> where
K: Hash + Eq + Copy, { /* fields omitted */ }
Methods
impl<K, V> LendingLibrary<K, V> where
K: Hash + Eq + Copy,
[src]
K: Hash + Eq + Copy,
pub fn new() -> LendingLibrary<K, V>
[src]
pub fn contains_key(&self, key: K) -> bool
[src]
pub fn insert(&mut self, key: K, val: V)
[src]
pub fn remove(&mut self, key: K) -> bool
[src]
pub fn lend(&mut self, key: K) -> Option<DropGuard<K, V>>
[src]
Trait Implementations
impl<K: Default, V: Default> Default for LendingLibrary<K, V> where
K: Hash + Eq + Copy,
[src]
K: Hash + Eq + Copy,
fn default() -> LendingLibrary<K, V>
[src]
Returns the "default value" for a type. Read more
impl<'a, K, V> IntoIterator for &'a LendingLibrary<K, V> where
K: Hash + Eq + Copy + 'a,
V: 'a,
[src]
K: Hash + Eq + Copy + 'a,
V: 'a,
type Item = (&'a K, &'a V)
The type of the elements being iterated over.
type IntoIter = Iter<'a, K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<K, V> Drop for LendingLibrary<K, V> where
K: Hash + Eq + Copy,
[src]
K: Hash + Eq + Copy,
Auto Trait Implementations
impl<K, V> Send for LendingLibrary<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for LendingLibrary<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,