Struct polodb_bson::linked_hash_map::VacantEntry [−][src]
pub struct VacantEntry<'a, K: 'a, V: 'a, S: 'a = DefaultHashBuilder> { /* fields omitted */ }
Expand description
A view into a single empty location in a LinkedHashMap
.
Implementations
Gets a reference to the entry key
Examples
use polodb_bson::linked_hash_map::LinkedHashMap;
let mut map = LinkedHashMap::<String, u32>::new();
assert_eq!("foo", map.entry("foo".to_string()).key());