Struct OccupiedEntry

struct OccupiedEntry<'a, K, V, S> { ... }

A view into an occupied entry in a LiteMap.

Implementations

impl<'a, K, V, S> OccupiedEntry<'a, K, V, S>

fn key(self: &Self) -> &K

Gets a reference to the key in the entry.

fn get(self: &Self) -> &V

Gets a reference to the value in the entry.

fn get_mut(self: &mut Self) -> &mut V

Gets a mutable reference to the value in the entry.

fn into_mut(self: Self) -> &'a mut V

Converts the entry into a mutable reference to the value in the entry with a lifetime bound to the map.

fn insert(self: &mut Self, value: V) -> V

Sets the value of the entry, and returns the entry's old value.

fn remove(self: Self) -> V

Takes the value out of the entry, and returns it.

impl<'a, K, V, S> Freeze for OccupiedEntry<'a, K, V, S>

impl<'a, K, V, S> RefUnwindSafe for OccupiedEntry<'a, K, V, S>

impl<'a, K, V, S> Send for OccupiedEntry<'a, K, V, S>

impl<'a, K, V, S> Sync for OccupiedEntry<'a, K, V, S>

impl<'a, K, V, S> Unpin for OccupiedEntry<'a, K, V, S>

impl<'a, K, V, S> UnsafeUnpin for OccupiedEntry<'a, K, V, S>

impl<'a, K, V, S> UnwindSafe for OccupiedEntry<'a, K, V, S>

impl<K, V, S> Debug for OccupiedEntry<'_, K, V, S>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<T> Any for OccupiedEntry<'a, K, V, S>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OccupiedEntry<'a, K, V, S>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OccupiedEntry<'a, K, V, S>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for OccupiedEntry<'a, K, V, S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for OccupiedEntry<'a, K, V, S>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for OccupiedEntry<'a, K, V, S>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for OccupiedEntry<'a, K, V, S>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>