Struct nekolib_doc::ds::BTreeSeq
source · pub struct BTreeSeq<T> { /* private fields */ }
Implementations§
source§impl<T> BTreeSeq<T>
impl<T> BTreeSeq<T>
pub fn new() -> BTreeSeq<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push_back(&mut self, elt: T)
pub fn push_front(&mut self, elt: T)
pub fn pop_back(&mut self) -> Option<T>
pub fn pop_front(&mut self) -> Option<T>
pub fn adjoin(&mut self, elt: T, other: BTreeSeq<T>)
pub fn append(&mut self, other: BTreeSeq<T>)
pub fn split_off(&mut self, at: usize) -> BTreeSeq<T>
pub fn iter<'a>(&'a self) -> Iter<'a, T> ⓘ
pub fn iter_mut<'a>(&'a mut self) -> IterMut<'a, T> ⓘ
pub fn into_iter(self) -> IntoIter<T> ⓘ
pub fn range<'a>(&'a self, range: impl RangeBounds<usize>) -> Range<'a, T> ⓘ
pub fn range_mut<'a>( &'a mut self, range: impl RangeBounds<usize>, ) -> RangeMut<'a, T> ⓘ
pub fn bisect<'a, F>(&'a self, predicate: F) -> (Option<&'a T>, usize)
pub fn bisect_mut<'a, F>( &'a mut self, predicate: F, ) -> (Option<&'a mut T>, usize)
pub fn insert(&mut self, at: usize, elt: T)
pub fn remove(&mut self, at: usize) -> T
pub fn rotate(&mut self, new_first: usize)
sourcepub unsafe fn get_unchecked(&self, index: usize) -> &T
pub unsafe fn get_unchecked(&self, index: usize) -> &T
§Safety
i < self.len()
sourcepub unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut T
pub unsafe fn get_unchecked_mut(&mut self, index: usize) -> &mut T
§Safety
i < self.len()
pub fn get(&self, index: usize) -> Option<&T>
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
Trait Implementations§
source§impl<T> Extend<T> for BTreeSeq<T>
impl<T> Extend<T> for BTreeSeq<T>
source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<T> FromIterator<T> for BTreeSeq<T>
impl<T> FromIterator<T> for BTreeSeq<T>
source§impl<'a, T> IntoIterator for &'a BTreeSeq<T>
impl<'a, T> IntoIterator for &'a BTreeSeq<T>
source§impl<'a, T> IntoIterator for &'a mut BTreeSeq<T>
impl<'a, T> IntoIterator for &'a mut BTreeSeq<T>
source§impl<T> IntoIterator for BTreeSeq<T>
impl<T> IntoIterator for BTreeSeq<T>
source§impl<T> Ord for BTreeSeq<T>where
T: Ord,
impl<T> Ord for BTreeSeq<T>where
T: Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialOrd for BTreeSeq<T>where
T: PartialOrd,
impl<T> PartialOrd for BTreeSeq<T>where
T: PartialOrd,
impl<T> Eq for BTreeSeq<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for BTreeSeq<T>
impl<T> RefUnwindSafe for BTreeSeq<T>where
T: RefUnwindSafe,
impl<T> !Send for BTreeSeq<T>
impl<T> !Sync for BTreeSeq<T>
impl<T> Unpin for BTreeSeq<T>where
T: Unpin,
impl<T> UnwindSafe for BTreeSeq<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)