[][src]Enum ccl::nestedmap::Entry

pub enum Entry<'a, K: Hash + Eq, V> {
    Occupied(OccupiedEntry<'a, K, V>),
    Vacant(VacantEntry<'a, K, V>),
}

Variants

Occupied(OccupiedEntry<'a, K, V>)Vacant(VacantEntry<'a, K, V>)

Methods

impl<'a, K: Hash + Eq, V> Entry<'a, K, V>[src]

pub fn is_occupied(&self) -> bool[src]

pub fn into_occupied(self) -> Option<OccupiedEntry<'a, K, V>>[src]

pub fn is_vacant(&self) -> bool[src]

pub fn into_vacant(self) -> Option<VacantEntry<'a, K, V>>[src]

pub fn key(&self) -> &K[src]

pub fn and_inspect<F: FnOnce(&V)>(self, f: F) -> Self[src]

impl<'a, K: Hash + Eq + Clone, V> Entry<'a, K, V>[src]

pub fn or_insert(self, default: V) -> TableRef<'a, K, V>[src]

pub fn or_insert_with<F: FnOnce() -> V>(self, default: F) -> TableRef<'a, K, V>[src]

Auto Trait Implementations

impl<'a, K, V> !Send for Entry<'a, K, V>

impl<'a, K, V> !Sync for Entry<'a, K, V>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Erased for T[src]