pub struct LinkedList<T>where
T: Debug,{ /* private fields */ }
Implementations§
Source§impl<T> LinkedList<T>
impl<T> LinkedList<T>
pub fn init_list() -> Self
pub fn append_front(&mut self, element: T)
pub fn append_back(&mut self, element: T)
pub fn insert_at_index(&mut self, element: T, index: u32)
pub fn delete_front(&mut self) -> Option<T>
pub fn delete_back(&mut self) -> Option<T>
pub fn delete_at_index(&mut self, index: u32) -> Option<T>
pub fn get_head(&self) -> Option<&T>
pub fn get_head_as_mut(&mut self) -> Option<&mut T>
pub fn get_tail_ref(&self) -> Option<&T>
pub fn get_tail_ref_mut(&mut self) -> Option<&mut T>
pub fn get_at_index(&self, index: u32) -> Option<&T>
pub fn get_mutable_ref_at_index(&mut self, index: u32) -> Option<&mut T>
pub fn get_length(&self) -> u32
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn contains(&self, item: T) -> boolwhere
T: PartialEq,
pub fn find(&self, item: T) -> Option<u32>where
T: PartialEq,
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LinkedList<T>
impl<T> RefUnwindSafe for LinkedList<T>where
T: RefUnwindSafe,
impl<T> Send for LinkedList<T>where
T: Send,
impl<T> Sync for LinkedList<T>where
T: Sync,
impl<T> Unpin for LinkedList<T>
impl<T> UnwindSafe for LinkedList<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