std::collections::btree_set::BTreeSet
pub struct BTreeSet<T, A = Global>
- Kind
- struct
- Module
std::collections::btree_set- 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_set in the Rust reference. This page has 86 cards.
pub struct BTreeSet<T, A = Global>
std::collections::btree_setSource: 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 BTreeSet<T, A>) where T: Ord, A: Clone
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clear(&mut self) where A: Clone
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn contains<Q>(&self, value: &Q) -> bool where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn difference<'a>( &'a self, other: &'a BTreeSet<T, A>, ) -> Difference<'a, T, A> where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn entry(&mut self, value: T) -> Entry<'_, T, A> where T: Ord
std::collections::btree_setSource: 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<'_, T, R, F, A> where T: Ord, R: RangeBounds<T>, F: FnMut(&T) -> bool
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn first(&self) -> Option<&T> where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get<Q>(&self, value: &Q) -> Option<&T> where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_or_insert(&mut self, value: T) -> &T where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_or_insert_with<Q, F>(&mut self, value: &Q, f: F) -> &T where T: Borrow<Q> + Ord, Q: Ord + ?Sized, F: FnOnce(&Q) -> T
std::collections::btree_setSource: 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: T) -> bool where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn intersection<'a>( &'a self, other: &'a BTreeSet<T, A>, ) -> Intersection<'a, T, A> where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_disjoint(&self, other: &BTreeSet<T, A>) -> bool where T: Ord
std::collections::btree_setSource: 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_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_subset(&self, other: &BTreeSet<T, A>) -> bool where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_superset(&self, other: &BTreeSet<T, A>) -> bool where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn iter(&self) -> Iter<'_, T>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn last(&self) -> Option<&T> where T: Ord
std::collections::btree_setSource: 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_setSource: 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<'_, T> where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: 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<'_, T, A> where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> BTreeSet<T>
std::collections::btree_setSource: 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) -> BTreeSet<T, A>
std::collections::btree_setSource: 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<T> where T: Ord
std::collections::btree_setSource: 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<T> where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn range<K, R>(&self, range: R) -> Range<'_, T> where K: Ord + ?Sized, T: Borrow<K> + Ord, R: RangeBounds<K>
std::collections::btree_setSource: 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, value: &Q) -> bool where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn replace(&mut self, value: T) -> Option<T> where T: Ord
std::collections::btree_setSource: 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 T: Ord, F: FnMut(&T) -> bool
std::collections::btree_setSource: 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, value: &Q) -> BTreeSet<T, A> where Q: Ord + ?Sized, T: Borrow<Q> + Ord, A: Clone
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn symmetric_difference<'a>( &'a self, other: &'a BTreeSet<T, A>, ) -> SymmetricDifference<'a, T> where T: Ord
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn take<Q>(&mut self, value: &Q) -> Option<T> where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn union<'a>(&'a self, other: &'a BTreeSet<T, A>) -> Union<'a, T> where T: Ord
std::collections::btree_setSource: 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<'_, T> where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: 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<'_, T, A> where T: Borrow<Q> + Ord, Q: Ord + ?Sized
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Cursor<'a, K>
std::collections::btree_setSource: 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>
std::collections::btree_setSource: 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>
std::collections::btree_setSource: 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>
std::collections::btree_setSource: 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>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct CursorMut<'a, K, A = Global>
std::collections::btree_setSource: 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<'_, T>
std::collections::btree_setSource: 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, value: T) -> Result<(), UnorderedKeyError>
std::collections::btree_setSource: 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, value: T)
std::collections::btree_setSource: 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, value: T) -> Result<(), UnorderedKeyError>
std::collections::btree_setSource: 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, value: T)
std::collections::btree_setSource: 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<&T>
std::collections::btree_setSource: 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<&T>
std::collections::btree_setSource: 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<&T>
std::collections::btree_setSource: 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<&T>
std::collections::btree_setSource: 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<T>
std::collections::btree_setSource: 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<T>
std::collections::btree_setSource: 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, T, A>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct CursorMutKey<'a, K, A = Global>
std::collections::btree_setSource: 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<'_, T>
std::collections::btree_setSource: 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, value: T) -> Result<(), UnorderedKeyError>
std::collections::btree_setSource: 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, value: T)
std::collections::btree_setSource: 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, value: T) -> Result<(), UnorderedKeyError>
std::collections::btree_setSource: 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, value: T)
std::collections::btree_setSource: 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 T>
std::collections::btree_setSource: 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 T>
std::collections::btree_setSource: 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 T>
std::collections::btree_setSource: 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 T>
std::collections::btree_setSource: 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<T>
std::collections::btree_setSource: 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<T>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Difference<'a, T, A = Global>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum Entry<'a, T, A = Global>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get(&self) -> &T
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert(self) -> OccupiedEntry<'a, T, A>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn or_insert(self)
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ExtractIf<'a, T, R, F, A = Global>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Intersection<'a, T, A = Global>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct IntoIter<T, A = Global>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Iter<'a, T>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct OccupiedEntry<'a, T, A = Global>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get(&self) -> &T
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove(self) -> T
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Range<'a, T>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct SymmetricDifference<'a, T>(/* private fields */)
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Union<'a, T>(/* private fields */)
std::collections::btree_setSource: 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_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct VacantEntry<'a, T, A = Global>
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get(&self) -> &T
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert(self)
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_value(self) -> T
std::collections::btree_setSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.