[][src]Struct inohashmap::StringHashMap

pub struct StringHashMap<T> {
    pub occupied: usize,
    // some fields omitted


occupied: usize


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;

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

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

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.