pub struct DoublyLinkedList<T> { /* private fields */ }Trait Implementations§
Source§impl<T> List<T> for DoublyLinkedList<T>
impl<T> List<T> for DoublyLinkedList<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 DoublyLinkedList<T>
impl<T> !RefUnwindSafe for DoublyLinkedList<T>
impl<T> !Send for DoublyLinkedList<T>
impl<T> !Sync for DoublyLinkedList<T>
impl<T> Unpin for DoublyLinkedList<T>
impl<T> !UnwindSafe for DoublyLinkedList<T>
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