Struct generational_cache::collections::list::LinkedList
source · pub struct LinkedList<V, T> { /* private fields */ }Expand description
A double-linked linked list implementation powered by a generational arena.
Implementations§
source§impl<V, T> LinkedList<V, T>
impl<V, T> LinkedList<V, T>
pub fn with_backing_vector(vector: V) -> Self
pub fn clear(&mut self) -> Result<(), ListError<V::Error>>
pub fn reserve(&mut self, additional: usize) -> Result<(), ListError<V::Error>>
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get_mut(&mut self, link: &Link) -> Option<&mut T>
pub fn get(&self, link: &Link) -> Option<&T>
pub fn push_front(&mut self, value: T) -> Result<Link, ListError<V::Error>>
pub fn push_back(&mut self, value: T) -> Result<Link, ListError<V::Error>>
pub fn peek_front(&self) -> Option<&T>
pub fn peek_back(&self) -> Option<&T>
pub fn unlink(&mut self, link: &Link) -> Option<Link>
pub fn remove(&mut self, link: &Link) -> Option<T>
pub fn pop_front(&mut self) -> Option<T>
pub fn pop_back(&mut self) -> Option<T>
pub fn shift_push_front(&mut self, link: &Link) -> Option<()>
pub fn shift_push_back(&mut self, link: &Link) -> Option<()>
pub fn iter(&self) -> Iter<'_, V, T> ⓘ
Trait Implementations§
source§impl<V, T> Default for LinkedList<V, T>
impl<V, T> Default for LinkedList<V, T>
source§impl<'a, V, T> IntoIterator for &'a LinkedList<V, T>
impl<'a, V, T> IntoIterator for &'a LinkedList<V, T>
Auto Trait Implementations§
impl<V, T> RefUnwindSafe for LinkedList<V, T>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, T> Send for LinkedList<V, T>
impl<V, T> Sync for LinkedList<V, T>
impl<V, T> Unpin for LinkedList<V, T>
impl<V, T> UnwindSafe for LinkedList<V, T>where
T: UnwindSafe,
V: 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