pub struct LinkedList<T> { /* private fields */ }Implementations§
Source§impl<T> LinkedList<T>
impl<T> LinkedList<T>
pub fn new() -> Self
pub fn append(&mut self, other: &mut Self)
pub fn iter(&self) -> Iter<'_, T> ⓘ
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn clear(&mut self)
pub fn front(&self) -> Option<&T>
pub fn back(&self) -> Option<&T>
pub fn push_front(&mut self, elt: T)
pub fn pop_front(&mut self) -> Option<T>
pub fn push_back(&mut self, elt: T)
pub fn pop_back(&mut self) -> Option<T>
pub fn split_off(&mut self, at: usize) -> LinkedList<T>
pub fn set_off(&mut self, at: usize, elt: T)
pub fn delete_first_n_filter<F>(&mut self, n: usize, f: F)
pub fn delete_last_n_filter<F>(&mut self, n: usize, f: F)
Trait Implementations§
Source§impl<T: Clone> Clone for LinkedList<T>
impl<T: Clone> Clone for LinkedList<T>
Source§impl<T> Drop for LinkedList<T>
impl<T> Drop for LinkedList<T>
Source§impl<T> Extend<T> for LinkedList<T>
impl<T> Extend<T> for LinkedList<T>
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
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 LinkedList<T>
impl<T> FromIterator<T> for LinkedList<T>
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<T> PartialEq for LinkedList<T>
impl<T> PartialEq for LinkedList<T>
Auto Trait Implementations§
impl<T> Freeze for LinkedList<T>
impl<T> RefUnwindSafe for LinkedList<T>where
T: RefUnwindSafe,
impl<T> !Send for LinkedList<T>
impl<T> !Sync for LinkedList<T>
impl<T> Unpin for LinkedList<T>
impl<T> UnwindSafe for LinkedList<T>where
T: RefUnwindSafe + 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