pub struct FingerTree<T> { /* private fields */ }Expand description
A finger tree sequence.
Implementations§
Source§impl<T: Clone> FingerTree<T>
impl<T: Clone> FingerTree<T>
Sourcepub fn push_right(&mut self, value: T)
pub fn push_right(&mut self, value: T)
Push an element onto the right (back).
Sourcepub fn peek_right(&self) -> Option<&T>
pub fn peek_right(&self) -> Option<&T>
Peek at the rightmost element.
Sourcepub fn concat(&mut self, other: FingerTree<T>)
pub fn concat(&mut self, other: FingerTree<T>)
Concatenate another finger tree onto the right of this one.
Sourcepub fn split_at(&mut self, at: usize) -> FingerTree<T>
pub fn split_at(&mut self, at: usize) -> FingerTree<T>
Split the tree at index at, returning the right portion.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for FingerTree<T>
impl<T> RefUnwindSafe for FingerTree<T>where
T: RefUnwindSafe,
impl<T> Send for FingerTree<T>where
T: Send,
impl<T> Sync for FingerTree<T>where
T: Sync,
impl<T> Unpin for FingerTree<T>where
T: Unpin,
impl<T> UnsafeUnpin for FingerTree<T>
impl<T> UnwindSafe for FingerTree<T>where
T: UnwindSafe,
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