pub struct Colo<T> { /* private fields */ }
Implementations§
Source§impl<T> Colo<T>
impl<T> Colo<T>
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn next_vacant(&self) -> usize
pub fn insert(&mut self, object: T) -> usize
pub fn remove(&mut self, index: usize) -> Option<T>
pub fn retain<F>(&mut self, f: F)
pub fn clear(&mut self)
pub fn get(&self, index: usize) -> Option<&T>
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
pub fn swap(&mut self, a: usize, b: usize)
pub fn reserve(&mut self, additional: usize)
pub fn reserve_exact(&mut self, additional: usize)
pub fn iter(&self) -> Iter<'_, T>
pub fn iter_mut(&mut self) -> IterMut<'_, T>
pub fn shrink_to_fit(&mut self)
Trait Implementations§
Source§impl<T> FromIterator<T> for Colo<T>
impl<T> FromIterator<T> for Colo<T>
Source§impl<'a, T> IntoIterator for &'a Colo<T>
impl<'a, T> IntoIterator for &'a Colo<T>
Source§impl<'a, T> IntoIterator for &'a mut Colo<T>
impl<'a, T> IntoIterator for &'a mut Colo<T>
Auto Trait Implementations§
impl<T> Freeze for Colo<T>
impl<T> RefUnwindSafe for Colo<T>where
T: RefUnwindSafe,
impl<T> Send for Colo<T>where
T: Send,
impl<T> Sync for Colo<T>where
T: Sync,
impl<T> Unpin for Colo<T>where
T: Unpin,
impl<T> UnwindSafe for Colo<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