doc.rust-lang.org
pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>
Gets a mutable iterator over the values of the map, in order by key.
method
alloc
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ExtractIf<'a, K, V, R, F, A>
This struct is created by the extract_if method on BTreeMap.
struct
alloc
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoIter<K, V, A>
An owning iterator over the entries of a BTreeMap, sorted by key.
struct
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoKeys<K, V, A>
An owning iterator over the keys of a BTreeMap.
struct
alloc
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoValues<K, V, A>
An owning iterator over the values of a BTreeMap.
struct
alloc
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Iter<'a, K, V>
An iterator over the entries of a BTreeMap.
struct
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct IterMut<'a, K, V>
A mutable iterator over the entries of a BTreeMap.
struct
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Keys<'a, K, V>
An iterator over the keys of a BTreeMap.
struct
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Range<'a, K, V>
An iterator over a sub-range of entries in a BTreeMap.
struct
alloc
Stable since 1.17.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeMut<'a, K, V>
A mutable iterator over a sub-range of entries in a BTreeMap.
struct
alloc
Stable since 1.17.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Values<'a, K, V>
An iterator over the values of a BTreeMap.
struct
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct ValuesMut<'a, K, V>
A mutable iterator over the values of a BTreeMap.
struct
alloc
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub enum Entry<'a, K, V, A>
A view into a single entry in a map, which may either be vacant or occupied.
enum
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn and_modify<F>(self, f: F) -> Self
Provides in-place mutable access to an occupied entry before any potential inserts into the map.
method
alloc
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V, A>
Sets the value of the entry, and returns an OccupiedEntry.
method
alloc
Stable since 1.92.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn key(&self) -> &K
Returns a reference to this entry's key.
method
alloc
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn or_default(self) -> &'a mut V
Ensures a value is in the entry by inserting the default value if empty, and returns a mutable reference to the value in the entry.
method
alloc
Stable since 1.28.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn or_insert(self, default: V) -> &'a mut V
Ensures a value is in the entry by inserting the default if empty, and returns a mutable reference to the value in the entry.
method
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn or_insert_with<F>(self, default: F) -> &'a mut V
Ensures a value is in the entry by inserting the result of the default function if empty, and returns a mutable reference to the value in the entry.
method
alloc
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn or_insert_with_key<F>(self, default: F) -> &'a mut V
Ensures a value is in the entry by inserting, if empty, the result of the default function.
method
alloc
Stable since 1.50.0
Version 1.100.0-nightly