pub struct OccupiedEntry<'a, K1: 'a, K2: 'a, V: 'a> { /* private fields */ }
Expand description

A view into an occupied entry in a DHashMap. It is part of the Entry enum and OccupiedError struct.

Implementations

Gets a reference to the key #1 in the entry.

Examples
use double_map::DHashMap;

let mut map: DHashMap<&str, u32, i32> = DHashMap::new();
map.entry("poneyland", 0).unwrap().or_insert(12);
assert_eq!(map.entry("poneyland", 0).unwrap().key1(), &"poneyland");
source

pub fn remove_entry(self) -> (K1, K2, V)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.