std::collections::LinkedList::len
pub fn len(&self) -> usize
- Kind
- method
- Module
std::collections- 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 in the Rust reference. This page has 281 cards.
pub fn len(&self) -> usize
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> LinkedList<T>
std::collectionsSource: 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) -> LinkedList<T, A>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_back(&mut self) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_front(&mut self) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_back(&mut self, elt: T)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_back_mut(&mut self, elt: T) -> &mut T
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_front(&mut self, elt: T)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_front_mut(&mut self, elt: T) -> &mut T
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove(&mut self, at: usize) -> T
std::collectionsSource: 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 F: FnMut(&mut T) -> bool
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off(&mut self, at: usize) -> LinkedList<T, A> where A: Clone
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct TryReserveError
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn kind(&self) -> TryReserveErrorKind
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum TryReserveErrorKind
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct VecDeque<T, A = Global>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn allocator(&self) -> &A
std::collectionsSource: 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 VecDeque<T, A>)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_mut_slices(&mut self) -> (&mut [T], &mut [T])
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_slices(&self) -> (&[T], &[T])
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn back(&self) -> Option<&T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn back_mut(&mut self) -> Option<&mut T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn binary_search(&self, x: &T) -> Result<usize, usize> where T: Ord
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize> where F: FnMut(&'a T) -> Ordering
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn binary_search_by_key<'a, B, F>( &'a self, b: &B, f: F, ) -> Result<usize, usize> where F: FnMut(&'a T) -> B, B: Ord
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn capacity(&self) -> usize
std::collectionsSource: 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::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn contains(&self, x: &T) -> bool where T: PartialEq
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A> where R: RangeBounds<usize>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn extend_from_within<R>(&mut self, src: R) where R: RangeBounds<usize>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn extend_front<I>(&mut self, iter: I) where I: IntoIterator<Item = T>
std::collectionsSource: 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, filter: F, ) -> ExtractIf<'_, T, F, A> where F: FnMut(&mut T) -> bool, R: RangeBounds<usize>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn front(&self) -> Option<&T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn front_mut(&mut self) -> Option<&mut T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get(&self, index: usize) -> Option<&T>
std::collectionsSource: 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, index: usize) -> Option<&mut T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert(&mut self, index: usize, value: T)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn insert_mut(&mut self, index: usize, value: T) -> &mut T
std::collectionsSource: 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::collectionsSource: 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::collectionsSource: 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<'_, T>
std::collectionsSource: 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::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn make_contiguous(&mut self) -> &mut [T]
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> VecDeque<T>
std::collectionsSource: 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) -> VecDeque<T, A>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn partition_point<P>(&self, pred: P) -> usize where P: FnMut(&T) -> bool
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_back(&mut self) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_back_if( &mut self, predicate: impl FnOnce(&mut T) -> bool, ) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_front(&mut self) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pop_front_if( &mut self, predicate: impl FnOnce(&mut T) -> bool, ) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn prepend<I>(&mut self, other: I) where I: IntoIterator<Item = T>, <I as IntoIterator>::IntoIter: DoubleEndedIterator
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn prepend_from_within<R>(&mut self, src: R) where R: RangeBounds<usize>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_back(&mut self, value: T)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_back_mut(&mut self, value: T) -> &mut T
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_front(&mut self, value: T)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push_front_mut(&mut self, value: T) -> &mut T
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn range<R>(&self, range: R) -> Iter<'_, T> where R: RangeBounds<usize>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn range_mut<R>(&mut self, range: R) -> IterMut<'_, T> where R: RangeBounds<usize>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove(&mut self, index: usize) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn reserve(&mut self, additional: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn reserve_exact(&mut self, additional: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn resize(&mut self, new_len: usize, value: T)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn resize_with(&mut self, new_len: usize, generator: impl FnMut() -> T)
std::collectionsSource: 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 F: FnMut(&T) -> bool
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn retain_mut<F>(&mut self, f: F) where F: FnMut(&mut T) -> bool
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rotate_left(&mut self, n: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rotate_right(&mut self, n: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn shrink_to(&mut self, min_capacity: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn shrink_to_fit(&mut self)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn splice<R, I>( &mut self, range: R, replace_with: I, ) -> Splice<'_, <I as IntoIterator>::IntoIter, A> where R: RangeBounds<usize>, I: IntoIterator<Item = T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off(&mut self, at: usize) -> VecDeque<T, A> where A: Clone
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn swap(&mut self, i: usize, j: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn swap_remove_back(&mut self, index: usize) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn swap_remove_front(&mut self, index: usize) -> Option<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn truncate(&mut self, len: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn truncate_front(&mut self, len: usize)
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_reserve_exact( &mut self, additional: usize, ) -> Result<(), TryReserveError>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_with_capacity( capacity: usize, ) -> Result<VecDeque<T>, TryReserveError>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with_capacity(capacity: usize) -> VecDeque<T>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with_capacity_in(capacity: usize, alloc: A) -> VecDeque<T, A>
std::collectionsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.