Struct flattiverse_connector::IndexList
source · pub struct IndexList<T> { /* private fields */ }
Implementations
sourceimpl<T> IndexList<T>
impl<T> IndexList<T>
pub fn new(avoid_zero: bool, size: usize) -> IndexList<T>
pub fn get(&self, index: usize) -> Option<Arc<T>>
pub fn get_weak(&self, index: usize) -> Weak<T>
pub fn set(&mut self, index: usize, value: Option<Arc<T>>)
pub fn wipe(&mut self, index: usize)
pub fn wipe_all(&mut self)
pub fn count(&mut self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations
impl<T> RefUnwindSafe for IndexList<T>where
T: RefUnwindSafe,
impl<T> Send for IndexList<T>where
T: Send + Sync,
impl<T> Sync for IndexList<T>where
T: Send + Sync,
impl<T> Unpin for IndexList<T>
impl<T> UnwindSafe for IndexList<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more