[−][src]Enum ccl::nestedmap::Entry
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
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,