std::collections::btree_map::BTreeMap
pub struct BTreeMap<K, V, A = Global>
- Kind
- struct
- Module
std::collections::btree_map- Since
- 1.0.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::collections::btree_map in the Rust reference. This page has 105 cards.
pub struct BTreeMap<K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn append(&mut self, other: &mut BTreeMap<K, V, A>) where K: Ord, A: Clone
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clear(&mut self)
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn contains_key<Q>(&self, key: &Q) -> bool where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn entry(&mut self, key: K) -> Entry<'_, K, V, A> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn extract_if<F, R>( &mut self, range: R, pred: F, ) -> ExtractIf<'_, K, V, R, F, A> where K: Ord, R: RangeBounds<K>, F: FnMut(&K, &mut V) -> bool
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn first_entry(&mut self) -> Option<OccupiedEntry<'_, K, V, A>> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn first_key_value(&self) -> Option<(&K, &V)> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get<Q>(&self, key: &Q) -> Option<&V> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_key_value<Q>(&self, k: &Q) -> Option<(&K, &V)> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut<Q>(&mut self, key: &Q) -> Option<&mut V> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert(&mut self, key: K, value: V) -> Option<V> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_keys(self) -> IntoKeys<K, V, A>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_values(self) -> IntoValues<K, V, A>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_empty(&self) -> bool
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn iter(&self) -> Iter<'_, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn iter_mut(&mut self) -> IterMut<'_, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn keys(&self) -> Keys<'_, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn last_entry(&mut self) -> Option<OccupiedEntry<'_, K, V, A>> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn last_key_value(&self) -> Option<(&K, &V)> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn len(&self) -> usize
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lower_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lower_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn merge( &mut self, other: BTreeMap<K, V, A>, conflict: impl FnMut(&K, V, V) -> V, ) where K: Ord, A: Clone
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> BTreeMap<K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new_in(alloc: A) -> BTreeMap<K, V, A>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_first(&mut self) -> Option<(K, V)> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_last(&mut self) -> Option<(K, V)> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn range<T, R>(&self, range: R) -> Range<'_, K, V> where T: Ord + ?Sized, K: Borrow<T> + Ord, R: RangeBounds<T>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn range_mut<T, R>(&mut self, range: R) -> RangeMut<'_, K, V> where T: Ord + ?Sized, K: Borrow<T> + Ord, R: RangeBounds<T>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove<Q>(&mut self, key: &Q) -> Option<V> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_entry<Q>(&mut self, key: &Q) -> Option<(K, V)> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn retain<F>(&mut self, f: F) where K: Ord, F: FnMut(&K, &mut V) -> bool
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off<Q>(&mut self, key: &Q) -> BTreeMap<K, V, A> where Q: Ord + ?Sized, K: Borrow<Q> + Ord, A: Clone
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_insert( &mut self, key: K, value: V, ) -> Result<&mut V, OccupiedError<'_, K, V, A>> where K: Ord
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn upper_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn upper_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A> where K: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn values(&self) -> Values<'_, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Cursor<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn next(&mut self) -> Option<(&'a K, &'a V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn peek_next(&self) -> Option<(&'a K, &'a V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn peek_prev(&self) -> Option<(&'a K, &'a V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn prev(&mut self) -> Option<(&'a K, &'a V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct CursorMut<'a, K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_cursor(&self) -> Cursor<'_, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert_after( &mut self, key: K, value: V, ) -> Result<(), UnorderedKeyError>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn insert_after_unchecked(&mut self, key: K, value: V)
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert_before( &mut self, key: K, value: V, ) -> Result<(), UnorderedKeyError>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn insert_before_unchecked(&mut self, key: K, value: V)
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn next(&mut self) -> Option<(&K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn peek_next(&mut self) -> Option<(&K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn peek_prev(&mut self) -> Option<(&K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn prev(&mut self) -> Option<(&K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_next(&mut self) -> Option<(K, V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_prev(&mut self) -> Option<(K, V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn with_mutable_key(self) -> CursorMutKey<'a, K, V, A>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct CursorMutKey<'a, K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_cursor(&self) -> Cursor<'_, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert_after( &mut self, key: K, value: V, ) -> Result<(), UnorderedKeyError>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn insert_after_unchecked(&mut self, key: K, value: V)
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert_before( &mut self, key: K, value: V, ) -> Result<(), UnorderedKeyError>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn insert_before_unchecked(&mut self, key: K, value: V)
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn next(&mut self) -> Option<(&mut K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn peek_next(&mut self) -> Option<(&mut K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn peek_prev(&mut self) -> Option<(&mut K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn prev(&mut self) -> Option<(&mut K, &mut V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_next(&mut self) -> Option<(K, V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_prev(&mut self) -> Option<(K, V)>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum Entry<'a, K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn and_modify<F>(self, f: F) -> Entry<'a, K, V, A> where F: FnOnce(&mut V)
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V, A>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn key(&self) -> &K
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn or_default(self) -> &'a mut V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn or_insert(self, default: V) -> &'a mut V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn or_insert_with<F>(self, default: F) -> &'a mut V where F: FnOnce() -> V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn or_insert_with_key<F>(self, default: F) -> &'a mut V where F: FnOnce(&K) -> V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn or_try_insert_with<F, E>(self, default: F) -> Result<&'a mut V, E> where F: FnOnce() -> Result<V, E>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn or_try_insert_with_key<F, E>(self, default: F) -> Result<&'a mut V, E> where F: FnOnce(&K) -> Result<V, E>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ExtractIf<'a, K, V, R, F, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct IntoIter<K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct IntoKeys<K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct IntoValues<K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Iter<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct IterMut<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Keys<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct OccupiedEntry<'a, K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get(&self) -> &V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut(&mut self) -> &mut V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert(&mut self, value: V) -> V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_mut(self) -> &'a mut V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn key(&self) -> &K
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove(self) -> V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_entry(self) -> (K, V)
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[non_exhaustive]pub struct OccupiedError<'a, K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Range<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct RangeMut<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct UnorderedKeyError
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct VacantEntry<'a, K, V, A = Global>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert(self, value: V) -> &'a mut V
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V, A>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_key(self) -> K
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn key(&self) -> &K
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Values<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ValuesMut<'a, K, V>
std::collections::btree_mapSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.