pub struct SinglyLinkedList<T> { /* private fields */ }Trait Implementations§
Source§impl<T: Debug> Debug for SinglyLinkedList<T>
impl<T: Debug> Debug for SinglyLinkedList<T>
Source§impl<T: PartialOrd + Copy> List<T> for SinglyLinkedList<T>
impl<T: PartialOrd + Copy> List<T> for SinglyLinkedList<T>
fn new() -> Self
fn push_front(&mut self, data: T)
fn push_back(&mut self, data: T)
fn pop_front(&mut self) -> Result<T, &'static str>
fn pop_back(&mut self) -> Result<T, &'static str>
fn is_empty(&self) -> bool
fn is_sorted(&self) -> bool
fn get(&mut self, index: usize) -> Option<T>
fn len(&self) -> usize
Auto Trait Implementations§
impl<T> Freeze for SinglyLinkedList<T>
impl<T> RefUnwindSafe for SinglyLinkedList<T>where
T: RefUnwindSafe,
impl<T> Send for SinglyLinkedList<T>where
T: Send,
impl<T> Sync for SinglyLinkedList<T>where
T: Sync,
impl<T> Unpin for SinglyLinkedList<T>
impl<T> UnwindSafe for SinglyLinkedList<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