Implementations
sourceimpl<'a, T: ?Sized + ListNode<'a, T>> List<'a, T>
impl<'a, T: ?Sized + ListNode<'a, T>> List<'a, T>
pub const fn new() -> List<'a, T>
pub fn head(&self) -> Option<&'a T>
pub fn push_head(&self, node: &'a T)
pub fn push_tail(&self, node: &'a T)
pub fn pop_head(&self) -> Option<&'a T>
pub fn iter(&self) -> ListIterator<'a, T>ⓘNotable traits for ListIterator<'a, T>impl<'a, T: ?Sized + ListNode<'a, T>> Iterator for ListIterator<'a, T> type Item = &'a T;
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for List<'a, T>
impl<'a, T: ?Sized> Send for List<'a, T> where
T: Sync,
impl<'a, T> !Sync for List<'a, T>
impl<'a, T: ?Sized> Unpin for List<'a, T>
impl<'a, T: ?Sized> UnwindSafe for List<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more