[][src]Struct batsat::intmap::IntMap

pub struct IntMap<K: AsIndex, V> { /* fields omitted */ }

Implementations

impl<K: AsIndex, V> IntMap<K, V>[src]

pub fn new() -> Self[src]

pub fn has(&self, k: K) -> bool[src]

pub fn reserve(&mut self, key: K, pad: V) where
    V: Clone
[src]

pub fn reserve_default(&mut self, key: K) where
    V: Default
[src]

pub fn insert(&mut self, key: K, val: V, pad: V) where
    V: Clone
[src]

pub fn insert_default(&mut self, key: K, val: V) where
    V: Default
[src]

pub fn clear(&mut self)[src]

Clear content, keep internal buffers. Does not allocate.

pub fn free(&mut self)[src]

Clear content, free memory

pub fn iter(&self) -> impl Iterator<Item = (K, &V)>[src]

pub fn iter_mut(&mut self) -> impl Iterator<Item = (K, &mut V)>[src]

Trait Implementations

impl<K: Clone + AsIndex, V: Clone> Clone for IntMap<K, V>[src]

impl<K: Debug + AsIndex, V: Debug> Debug for IntMap<K, V>[src]

impl<K: AsIndex, V> Default for IntMap<K, V>[src]

impl<K: AsIndex, V> Index<K> for IntMap<K, V>[src]

type Output = V

The returned type after indexing.

impl<K: AsIndex, V> IndexMut<K> for IntMap<K, V>[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for IntMap<K, V> where
    V: RefUnwindSafe
[src]

impl<K, V> Send for IntMap<K, V> where
    V: Send
[src]

impl<K, V> Sync for IntMap<K, V> where
    V: Sync
[src]

impl<K, V> Unpin for IntMap<K, V> where
    V: Unpin
[src]

impl<K, V> UnwindSafe for IntMap<K, V> where
    V: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.