pub struct ReuseList<T> { /* private fields */ }Implementations§
Source§impl<T> ReuseList<T>
impl<T> ReuseList<T>
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn with_capacity(capacity: usize) -> Self
pub fn append(&mut self, item: T) -> usize
pub fn remove(&mut self, index: usize) -> Option<T>
pub fn get(&self, index: usize) -> Option<&T>
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn clear(&mut self)
pub fn optimize(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ReuseList<T>
impl<T> RefUnwindSafe for ReuseList<T>
impl<T> Send for ReuseList<T>
impl<T> Sync for ReuseList<T>
impl<T> Unpin for ReuseList<T>
impl<T> UnsafeUnpin for ReuseList<T>
impl<T> UnwindSafe for ReuseList<T>
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