[][src]Struct inohashmap::StringHashMap

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

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]

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]

impl<T> Send for StringHashMap<T> where
    T: Send
[src]

impl<T> Sync for StringHashMap<T> where
    T: Sync
[src]

impl<T> Unpin for StringHashMap<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for StringHashMap<T> where
    T: UnwindSafe
[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.