[−][src]Struct inohashmap::StringHashMap
Fields
occupied: usize
Implementations
impl<T: Default + Clone + Debug> StringHashMap<T>
[src]
pub fn with_power_of_two_size(power_of_two: usize) -> Self
[src]
pub fn new() -> Self
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn shrink_to_fit(&mut self)
[src]
pub fn get(&mut self, el: &str) -> Option<&T>
[src]
pub fn get_mut(&mut self, el: &str) -> Option<&mut T>
[src]
pub fn get_or_create(&mut self, el: &str, value: T) -> &mut T
[src]
pub fn values(&self) -> impl Iterator<Item = &T>
[src]
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut T>
[src]
pub fn keys(&self) -> KeyIterator<'_, T>ⓘNotable traits for KeyIterator<'a, T>
impl<'a, T> Iterator for KeyIterator<'a, T> type Item = &'a str;
[src]
Notable traits for KeyIterator<'a, T>
impl<'a, T> Iterator for KeyIterator<'a, T> type Item = &'a str;
pub fn iter(&self) -> impl Iterator<Item = (&str, &T)>
[src]
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&str, &mut T)>
[src]
Trait Implementations
impl<T: Debug> Debug for StringHashMap<T>
[src]
impl<T: Default + Clone + Debug> Default for StringHashMap<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for StringHashMap<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for StringHashMap<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for StringHashMap<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for StringHashMap<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for StringHashMap<T> where
T: UnwindSafe,
[src]
T: 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,
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<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>,