pub struct LinkedList<Data, Container, Ix> {
pub start: Option<Ix>,
marker: PhantomData<(Data, Container)>,
}Fields§
§start: Option<Ix>§marker: PhantomData<(Data, Container)>Implementations§
Source§impl<Data, Container, Ix> LinkedList<Data, Container, Ix>
impl<Data, Container, Ix> LinkedList<Data, Container, Ix>
pub fn new() -> Self
pub fn push_front(&mut self, push_ix: Ix, container: &mut Container)
pub fn pop(&mut self, container: &mut Container) -> Option<Ix>
Sourcepub fn remove(&mut self, remove_ix: Ix, container: &mut Container)
pub fn remove(&mut self, remove_ix: Ix, container: &mut Container)
remove_ix must be a member of the list headed by self
Sourcefn to_vec(&self, container: &mut Container) -> Vec<Ix>
fn to_vec(&self, container: &mut Container) -> Vec<Ix>
For debug purposes
Trait Implementations§
Source§impl<Data: PartialEq, Container: PartialEq, Ix: PartialEq> PartialEq for LinkedList<Data, Container, Ix>
impl<Data: PartialEq, Container: PartialEq, Ix: PartialEq> PartialEq for LinkedList<Data, Container, Ix>
Source§fn eq(&self, other: &LinkedList<Data, Container, Ix>) -> bool
fn eq(&self, other: &LinkedList<Data, Container, Ix>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Data, Container, Ix> StructuralPartialEq for LinkedList<Data, Container, Ix>
Auto Trait Implementations§
impl<Data, Container, Ix> Freeze for LinkedList<Data, Container, Ix>where
Ix: Freeze,
impl<Data, Container, Ix> RefUnwindSafe for LinkedList<Data, Container, Ix>
impl<Data, Container, Ix> Send for LinkedList<Data, Container, Ix>
impl<Data, Container, Ix> Sync for LinkedList<Data, Container, Ix>
impl<Data, Container, Ix> Unpin for LinkedList<Data, Container, Ix>
impl<Data, Container, Ix> UnsafeUnpin for LinkedList<Data, Container, Ix>where
Ix: UnsafeUnpin,
impl<Data, Container, Ix> UnwindSafe for LinkedList<Data, Container, Ix>
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