pub struct List<T> { /* private fields */ }Implementations§
Source§impl<T> List<T>
impl<T> List<T>
pub fn iter(&self) -> ListIterator<T> ⓘ
pub fn split(&self) -> (List<T>, List<T>)
pub fn reverse(&self) -> List<T>
pub fn empty() -> List<T>
pub fn push_front(&self, value: T) -> List<T>
pub fn is_empty(&self) -> bool
pub fn length(&self) -> usize
pub fn pop_front_rc(&self) -> Option<(RefCounter<T>, List<T>)>
pub fn pop_front(&self) -> Option<(&T, List<T>)>
pub fn front(&self) -> Option<&T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for List<T>
impl<T> RefUnwindSafe for List<T>where
T: RefUnwindSafe,
impl<T> !Send for List<T>
impl<T> !Sync for List<T>
impl<T> Unpin for List<T>
impl<T> UnwindSafe for List<T>where
T: 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