Enum stry_common::utils::fenn::vec_map::Entry [−][src]
Variants
Occupied(OccupiedEntry<'a, K, V>)Vacant(VacantEntry<'a, K, V>)Implementations
impl<'a, K: 'a, V: 'a> Entry<'a, K, V>[src]
impl<'a, K: 'a, V: 'a> Entry<'a, K, V> where
K: Eq, [src]
K: Eq,
pub fn insert(self, value: V) -> OccupiedEntry<'a, K, V>[src]
pub fn or_insert(self, default: V) -> &'a mut V[src]
impl<'a, K: 'a, V: 'a> Entry<'a, K, V> where
K: Eq,
V: Default, [src]
K: Eq,
V: Default,
pub fn or_default(self) -> &'a mut V[src]
Trait Implementations
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for Entry<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for Entry<'a, K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<'a, K, V> Sync for Entry<'a, K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for Entry<'a, K, V> where
K: Unpin,
K: Unpin,
impl<'a, K, V> !UnwindSafe for Entry<'a, K, V>
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> IntoOption for T[src]
fn some_if(self, predicate: bool) -> Option<Self>[src]
fn with_some_if<F>(self, predicate: F) -> Option<Self> where
F: FnOnce(&Self) -> bool, [src]
F: FnOnce(&Self) -> bool,
fn none_if(self, predicate: bool) -> Option<Self>[src]
fn with_none_if<F>(self, predicate: F) -> Option<Self> where
F: FnOnce(&Self) -> bool, [src]
F: FnOnce(&Self) -> bool,
impl<T> IntoResult for T[src]
fn ok_if<E>(self, predicate: bool, err: E) -> Result<Self, E>[src]
fn with_ok_if<F, E>(self, predicate: F, err: E) -> Result<Self, E> where
F: FnOnce(&Self) -> bool, [src]
F: FnOnce(&Self) -> bool,
fn err_if<E>(self, predicate: bool, err: E) -> Result<Self, E>[src]
fn with_err_if<F, E>(self, predicate: F, err: E) -> Result<Self, E> where
F: FnOnce(&Self) -> bool, [src]
F: FnOnce(&Self) -> bool,
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>,