pub struct VecListBackend<T> { /* private fields */ }Expand description
Default Vec-backed list backend.
Implementations§
Source§impl<T> VecListBackend<T>
impl<T> VecListBackend<T>
Trait Implementations§
Source§impl<T> Default for VecListBackend<T>
impl<T> Default for VecListBackend<T>
Source§impl<T: Clone + Send + Sync> ListBackend<T> for VecListBackend<T>
impl<T: Clone + Send + Sync> ListBackend<T> for VecListBackend<T>
fn size(&self) -> usize
fn at(&self, index: i64) -> Option<T>
fn append(&mut self, value: T)
fn append_many(&mut self, values: Vec<T>)
fn insert(&mut self, index: usize, value: T)
fn insert_many(&mut self, index: usize, values: Vec<T>)
Source§fn pop(&mut self, index: i64) -> Option<T>
fn pop(&mut self, index: i64) -> Option<T>
Remove and return element at
index. Negative indices count from end.fn clear(&mut self) -> usize
fn to_vec(&self) -> Vec<T>
Auto Trait Implementations§
impl<T> Freeze for VecListBackend<T>
impl<T> RefUnwindSafe for VecListBackend<T>where
T: RefUnwindSafe,
impl<T> Send for VecListBackend<T>where
T: Send,
impl<T> Sync for VecListBackend<T>where
T: Sync,
impl<T> Unpin for VecListBackend<T>where
T: Unpin,
impl<T> UnsafeUnpin for VecListBackend<T>
impl<T> UnwindSafe for VecListBackend<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