Enum small_sorted_map::Entry[][src]

pub enum Entry<'m, K, V, const SIZE: usize> where
    K: Ord + 'm,
    V: 'm, 
{ Occupied(OccupiedEntry<'m, K, V, SIZE>), Vacant(VacantEntry<'m, K, V, SIZE>), }

Variants

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

Implementations

impl<'m, K, V, const SIZE: usize> Entry<'m, K, V, SIZE> where
    K: Ord + 'm,
    V: 'm, 
[src]

pub fn or_insert_with<F>(self, f: F) -> &'m mut V where
    F: FnOnce() -> V, 
[src]

impl<'m, K, V, const SIZE: usize> Entry<'m, K, V, SIZE> where
    K: Ord + 'm,
    V: Default + 'm, 
[src]

pub fn or_default(self) -> &'m mut V[src]

Trait Implementations

impl<'m, K: Debug, V: Debug, const SIZE: usize> Debug for Entry<'m, K, V, SIZE> where
    K: Ord + 'm,
    V: 'm, 
[src]

Auto Trait Implementations

impl<'m, K, V, const SIZE: usize> RefUnwindSafe for Entry<'m, K, V, SIZE> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<'m, K, V, const SIZE: usize> Send for Entry<'m, K, V, SIZE> where
    K: Send,
    V: Send

impl<'m, K, V, const SIZE: usize> Sync for Entry<'m, K, V, SIZE> where
    K: Sync,
    V: Sync

impl<'m, K, V, const SIZE: usize> Unpin for Entry<'m, K, V, SIZE> where
    K: Unpin

impl<'m, K, V, const SIZE: usize> !UnwindSafe for Entry<'m, K, V, SIZE>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.