pub struct StringHashMap<T> {
pub occupied: usize,
/* private fields */
}
Fields§
§occupied: usize
Implementations§
Source§impl<T: Default + Clone + Debug> StringHashMap<T>
impl<T: Default + Clone + Debug> StringHashMap<T>
pub fn with_power_of_two_size(power_of_two: usize) -> Self
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn shrink_to_fit(&mut self)
pub fn get(&mut self, el: &str) -> Option<&T>
pub fn get_mut(&mut self, el: &str) -> Option<&mut T>
pub fn get_or_create(&mut self, el: &str, value: T) -> &mut T
pub fn values(&self) -> impl Iterator<Item = &T>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn keys(&self) -> KeyIterator<'_, T> ⓘ
pub fn iter(&self) -> impl Iterator<Item = (&str, &T)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&str, &mut T)>
Trait Implementations§
Source§impl<T: Debug> Debug for StringHashMap<T>
impl<T: Debug> Debug for StringHashMap<T>
Auto Trait Implementations§
impl<T> Freeze for StringHashMap<T>
impl<T> RefUnwindSafe for StringHashMap<T>where
T: RefUnwindSafe,
impl<T> Send for StringHashMap<T>where
T: Send,
impl<T> Sync for StringHashMap<T>where
T: Sync,
impl<T> Unpin for StringHashMap<T>where
T: Unpin,
impl<T> UnwindSafe for StringHashMap<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more