pub struct List<T> { /* private fields */ }
Implementations§
Source§impl<T> List<T>
impl<T> List<T>
pub fn new() -> Self
pub fn push(&mut self, elem: T)
pub fn pop(&mut self) -> Option<T>
pub fn peek(&self) -> Option<&T>
pub fn peek_mut(&mut self) -> Option<&mut T>
pub fn into_iter(self) -> IntoIter<T> ⓘ
pub fn iter(&self) -> Iter<'_, T> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, 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>where
T: Send,
impl<T> Sync for List<T>where
T: Sync,
impl<T> Unpin for List<T>
impl<T> UnwindSafe for List<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