[−][src]Struct small_ord_set::VacantEntry
A view into a vacant entry in a HashMap
.
It is part of the Entry
enum.
Methods
impl<'a, A: Array, K> VacantEntry<'a, A, K>
[src]
pub fn key(&self) -> &K
[src]
Gets a reference to the key that would be used when inserting a value through the VacantEntry.
pub fn into_key(self) -> K
[src]
Take ownership of the key.
pub fn insert_with<F>(self, f: F) -> &'a mut A::Item where
F: FnOnce(K) -> A::Item,
[src]
F: FnOnce(K) -> A::Item,
Insert an element using the given constructor.
The ordering of the computed element must match that of the key.
impl<'a, A, K, V> VacantEntry<'a, A, K> 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 insert(self, value: V) -> &'a mut V
[src]
Sets the value of the entry with the VacantEntry's key, and returns a mutable reference to it.
Trait Implementations
impl<'_, A, K> Debug for VacantEntry<'_, A, K> where
A: Array,
K: Debug,
[src]
A: Array,
K: Debug,
Auto Trait Implementations
impl<'a, A, K> Send for VacantEntry<'a, A, K> where
K: Send,
<A as Array>::Item: Send,
K: Send,
<A as Array>::Item: Send,
impl<'a, A, K> Sync for VacantEntry<'a, A, K> where
A: Sync,
K: Sync,
A: Sync,
K: Sync,
impl<'a, A, K> Unpin for VacantEntry<'a, A, K> where
K: Unpin,
K: Unpin,
impl<'a, A, K> !UnwindSafe for VacantEntry<'a, A, K>
impl<'a, A, K> RefUnwindSafe for VacantEntry<'a, A, K> where
A: RefUnwindSafe,
K: RefUnwindSafe,
<A as Array>::Item: RefUnwindSafe,
A: RefUnwindSafe,
K: 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,