[−][src]Struct fallible_collections::hashmap::TryHashMap
Implementations
impl<K, V> TryHashMap<K, V> where
K: Eq + Hash,
[src]
K: Eq + Hash,
pub fn with_capacity(capacity: usize) -> Result<Self, TryReserveError>
[src]
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
pub fn insert(&mut self, k: K, v: V) -> Result<Option<V>, TryReserveError>
[src]
pub fn iter(&self) -> Iter<'_, K, V>
[src]
pub fn len(&self) -> usize
[src]
pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Trait Implementations
impl<K: Default, V: Default> Default for TryHashMap<K, V>
[src]
pub fn default() -> TryHashMap<K, V>
[src]
impl<K, V> IntoIterator for TryHashMap<K, V>
[src]
type Item = (K, V)
The type of the elements being iterated over.
type IntoIter = IntoIter<K, V>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<K, V> TryClone for TryHashMap<K, V> where
K: Eq + Hash + TryClone,
V: TryClone,
[src]
K: Eq + Hash + TryClone,
V: TryClone,
pub fn try_clone(&self) -> Result<Self, TryReserveError>
[src]
Auto Trait Implementations
impl<K, V> Send for TryHashMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for TryHashMap<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for TryHashMap<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
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,
pub 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<I, T> TryCollect<I> for T where
T: IntoIterator<Item = I>,
[src]
T: IntoIterator<Item = I>,
pub fn try_collect<C>(Self) -> Result<C, TryReserveError> where
C: TryFromIterator<I>,
[src]
C: TryFromIterator<I>,
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.
pub 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>,