pub struct PinList<T: ?Sized + Types> { /* private fields */ }Expand description
An intrusive linked list.
Implementations§
Source§impl<T: ?Sized + Types> PinList<T>
impl<T: ?Sized + Types> PinList<T>
Sourcepub fn cursor_ghost(&self) -> Cursor<'_, T>
pub fn cursor_ghost(&self) -> Cursor<'_, T>
Obtain a Cursor pointing to the “ghost” element of the list.
Sourcepub fn cursor_front(&self) -> Cursor<'_, T>
pub fn cursor_front(&self) -> Cursor<'_, T>
Obtain a Cursor pointing to the first element of the list, or the ghost element if the
list is empty.
Sourcepub fn cursor_back(&self) -> Cursor<'_, T>
pub fn cursor_back(&self) -> Cursor<'_, T>
Obtain a Cursor pointing to the last element of the list, or the ghost element if the
list is empty.
Sourcepub fn cursor_ghost_mut(&mut self) -> CursorMut<'_, T>
pub fn cursor_ghost_mut(&mut self) -> CursorMut<'_, T>
Obtain a CursorMut pointing to the “ghost” element of the list.
Sourcepub fn cursor_front_mut(&mut self) -> CursorMut<'_, T>
pub fn cursor_front_mut(&mut self) -> CursorMut<'_, T>
Obtain a CursorMut pointing to the first element of the list, or the ghost element if the
list is empty.
Sourcepub fn cursor_back_mut(&mut self) -> CursorMut<'_, T>
pub fn cursor_back_mut(&mut self) -> CursorMut<'_, T>
Obtain a CursorMut pointing to the last element of the list, or the ghost element if the
list is empty.