[−][src]Struct small_ord_set::OccupiedEntry
A view into an occupied entry in a SmallOrdSet
.
It is part of the Entry
enum.
Methods
impl<'a, A> OccupiedEntry<'a, A> where
A: Array,
[src]
A: Array,
pub fn get_entry(&self) -> &A::Item
[src]
Gets a reference to the the entry.
pub fn remove_entry(self) -> A::Item
[src]
Take the ownership of the element from the set.
impl<'a, A, K, V> OccupiedEntry<'a, A> where
A: Array<Item = KeyValuePair<K, V>>,
K: Ord + 'a,
V: 'a,
[src]
A: Array<Item = KeyValuePair<K, V>>,
K: Ord + 'a,
V: 'a,
pub fn key(&self) -> &K
[src]
Gets a reference to the key in the entry.
pub fn get(&self) -> &V
[src]
Gets a reference to the value in the entry.
pub fn get_mut(&mut self) -> &mut V
[src]
Gets a mutable reference to the value in the entry.
If you need a reference to the OccupiedEntry
which may outlive the
destruction of the Entry
value, see into_mut
.
pub fn into_mut(self) -> &'a mut V
[src]
Converts the OccupiedEntry into a mutable reference to the value in the entry with a lifetime bound to the map itself.
If you need multiple references to the OccupiedEntry
, see get_mut
.
Trait Implementations
Auto Trait Implementations
impl<'a, A> Send for OccupiedEntry<'a, A> where
<A as Array>::Item: Send,
<A as Array>::Item: Send,
impl<'a, A> Sync for OccupiedEntry<'a, A> where
A: Sync,
A: Sync,
impl<'a, A> Unpin for OccupiedEntry<'a, A>
impl<'a, A> !UnwindSafe for OccupiedEntry<'a, A>
impl<'a, A> RefUnwindSafe for OccupiedEntry<'a, A> where
A: RefUnwindSafe,
<A as Array>::Item: RefUnwindSafe,
A: RefUnwindSafe,
<A as Array>::Item: RefUnwindSafe,
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 = !
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,