Struct rust_examples::list_second::List
source · 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, item: T)
pub fn push_node(&mut self, node: Box<Node<T>>)
pub fn pop(&mut self) -> Option<T>
pub fn pop_node(&mut self) -> Option<Box<Node<T>>>
pub fn peek(&self) -> Option<&T>
pub fn peek_mut(&mut self) -> Option<&mut T>
pub fn iter_into(self) -> IterInto<T> ⓘ
pub fn iter(&self) -> Iter<'_, T> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, T> ⓘ
Trait Implementations§
Auto Trait Implementations§
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