[−][src]Struct batsat::intmap::IntMap
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]
V: Clone,
pub fn reserve_default(&mut self, key: K) where
V: Default,
[src]
V: Default,
pub fn insert(&mut self, key: K, val: V, pad: V) where
V: Clone,
[src]
V: Clone,
pub fn insert_default(&mut self, key: K, val: V) where
V: Default,
[src]
V: Default,
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.
pub fn index(&self, index: K) -> &Self::Output
[src]
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]
V: RefUnwindSafe,
impl<K, V> Send for IntMap<K, V> where
V: Send,
[src]
V: Send,
impl<K, V> Sync for IntMap<K, V> where
V: Sync,
[src]
V: Sync,
impl<K, V> Unpin for IntMap<K, V> where
V: Unpin,
[src]
V: Unpin,
impl<K, V> UnwindSafe for IntMap<K, V> where
V: UnwindSafe,
[src]
V: 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,