Enum enso_flexer::prelude::weak_table::weak_weak_hash_map::Entry [−][src]
pub enum Entry<'a, K, V> where
K: 'a + WeakKey,
V: 'a + WeakElement, { Occupied(OccupiedEntry<'a, K, V>), Vacant(VacantEntry<'a, K, V>), }
Expand description
Represents an entry in the table which may be occupied or vacant.
Variants
Occupied(OccupiedEntry<'a, K, V>)
Vacant(VacantEntry<'a, K, V>)
Implementations
impl<'a, K, V> Entry<'a, K, V> where
K: WeakKey,
V: WeakElement,
[src]
impl<'a, K, V> Entry<'a, K, V> where
K: WeakKey,
V: WeakElement,
[src]pub fn or_insert(
self,
default: <V as WeakElement>::Strong
) -> <V as WeakElement>::Strong
[src]
pub fn or_insert(
self,
default: <V as WeakElement>::Strong
) -> <V as WeakElement>::Strong
[src]Ensures a value is in the entry by inserting a default value if empty, and returns a mutable reference to the value in the entry.
pub fn or_insert_with<F>(self, default: F) -> <V as WeakElement>::Strong where
F: FnOnce() -> <V as WeakElement>::Strong,
[src]
pub fn or_insert_with<F>(self, default: F) -> <V as WeakElement>::Strong where
F: FnOnce() -> <V as WeakElement>::Strong,
[src]Ensures a value is in the entry by inserting the result of the default function if empty, and returns a mutable reference to the value in the entry.
pub fn key(&self) -> &<K as WeakElement>::Strong
[src]
pub fn key(&self) -> &<K as WeakElement>::Strong
[src]Returns a reference to this entry’s key.
Trait Implementations
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for Entry<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
<K as WeakElement>::Strong: RefUnwindSafe,
<V as WeakElement>::Strong: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
<K as WeakElement>::Strong: RefUnwindSafe,
<V as WeakElement>::Strong: RefUnwindSafe,
impl<'a, K, V> Send for Entry<'a, K, V> where
K: Send,
V: Send,
<K as WeakElement>::Strong: Send,
<V as WeakElement>::Strong: Send,
K: Send,
V: Send,
<K as WeakElement>::Strong: Send,
<V as WeakElement>::Strong: Send,
impl<'a, K, V> Sync for Entry<'a, K, V> where
K: Sync,
V: Sync,
<K as WeakElement>::Strong: Sync,
<V as WeakElement>::Strong: Sync,
K: Sync,
V: Sync,
<K as WeakElement>::Strong: Sync,
<V as WeakElement>::Strong: Sync,
impl<'a, K, V> Unpin for Entry<'a, K, V> where
<K as WeakElement>::Strong: Unpin,
<V as WeakElement>::Strong: Unpin,
<K as WeakElement>::Strong: Unpin,
<V as WeakElement>::Strong: Unpin,
impl<'a, K, V> !UnwindSafe for Entry<'a, K, V>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> HasRefValue for T where
T: ?Sized,
[src]
impl<T> HasRefValue for T where
T: ?Sized,
[src]type RefValue = T
impl<T> PhantomConversions for T
[src]
impl<T> PhantomConversions for T
[src]fn phantom_into<P>() -> P where
Self: PhantomInto<P>,
[src]
Self: PhantomInto<P>,
fn phantom_from<P>() -> Self where
P: PhantomInto<Self>,
[src]
P: PhantomInto<Self>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<T> TypeDisplay for T
[src]
impl<T> TypeDisplay for T
[src]pub default fn type_display() -> String
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> Writer for T
[src]
impl<T> Writer for T
[src]pub default fn write_by_level(&self, message: &Array)
[src]
pub default fn write_by_level(&self, message: &Array)
[src]Write message using the appropriate console method.