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 with_capacity(capacity: usize) -> LendingLibrary<K, V>
[src]
pub fn capacity(&self) -> usize
[src]
pub fn reserve(&mut self, additional: usize)
[src]
pub fn shrink_to_fit(&mut self)
[src]
ⓘImportant traits for Iter<'a, K, V>pub fn iter<'a>(&'a self) -> Iter<'a, K, V>
[src]
ⓘImportant traits for Iter<'a, K, V>
ⓘImportant traits for IterMut<'a, K, V>pub fn iter_mut<'a>(&'a mut self) -> IterMut<'a, K, V>
[src]
ⓘImportant traits for IterMut<'a, K, V>
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn clear(&mut self)
[src]
pub fn contains_key(&self, key: K) -> bool
[src]
pub fn insert(&mut self, key: K, val: V) -> Option<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<'a, K, V> IntoIterator for &'a mut LendingLibrary<K, V> where
K: Hash + Eq + Copy + 'a,
V: 'a,
[src]
K: Hash + Eq + Copy + 'a,
V: 'a,
type Item = (&'a K, &'a mut V)
The type of the elements being iterated over.
type IntoIter = IterMut<'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,