pub struct SparseSet<Usize, const FIXED: bool = true> { /* private fields */ }
Implementations§
Source§impl<const FIXED: bool> SparseSet<u8, FIXED>
impl<const FIXED: bool> SparseSet<u8, FIXED>
pub fn new(n: usize) -> Self
pub unsafe fn insert_unchecked(&mut self, x: u8)
pub fn insert(&mut self, x: u8) -> bool
pub unsafe fn remove_unchecked(&mut self, x: u8)
pub fn remove(&mut self, x: u8) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, x: u8) -> bool
pub fn iter(&self) -> Iter<'_, u8>
Source§impl<const FIXED: bool> SparseSet<u16, FIXED>
impl<const FIXED: bool> SparseSet<u16, FIXED>
pub fn new(n: usize) -> Self
pub unsafe fn insert_unchecked(&mut self, x: u16)
pub fn insert(&mut self, x: u16) -> bool
pub unsafe fn remove_unchecked(&mut self, x: u16)
pub fn remove(&mut self, x: u16) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, x: u16) -> bool
pub fn iter(&self) -> Iter<'_, u16>
Source§impl<const FIXED: bool> SparseSet<u32, FIXED>
impl<const FIXED: bool> SparseSet<u32, FIXED>
pub fn new(n: usize) -> Self
pub unsafe fn insert_unchecked(&mut self, x: u32)
pub fn insert(&mut self, x: u32) -> bool
pub unsafe fn remove_unchecked(&mut self, x: u32)
pub fn remove(&mut self, x: u32) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, x: u32) -> bool
pub fn iter(&self) -> Iter<'_, u32>
Source§impl<const FIXED: bool> SparseSet<u64, FIXED>
impl<const FIXED: bool> SparseSet<u64, FIXED>
pub fn new(n: usize) -> Self
pub unsafe fn insert_unchecked(&mut self, x: u64)
pub fn insert(&mut self, x: u64) -> bool
pub unsafe fn remove_unchecked(&mut self, x: u64)
pub fn remove(&mut self, x: u64) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, x: u64) -> bool
pub fn iter(&self) -> Iter<'_, u64>
Source§impl<const FIXED: bool> SparseSet<usize, FIXED>
impl<const FIXED: bool> SparseSet<usize, FIXED>
pub fn new(n: usize) -> Self
pub unsafe fn insert_unchecked(&mut self, x: usize)
pub fn insert(&mut self, x: usize) -> bool
pub unsafe fn remove_unchecked(&mut self, x: usize)
pub fn remove(&mut self, x: usize) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, x: usize) -> bool
pub fn iter(&self) -> Iter<'_, usize>
Trait Implementations§
Auto Trait Implementations§
impl<Usize, const FIXED: bool> Freeze for SparseSet<Usize, FIXED>
impl<Usize, const FIXED: bool> RefUnwindSafe for SparseSet<Usize, FIXED>where
Usize: RefUnwindSafe,
impl<Usize, const FIXED: bool> Send for SparseSet<Usize, FIXED>where
Usize: Send,
impl<Usize, const FIXED: bool> Sync for SparseSet<Usize, FIXED>where
Usize: Sync,
impl<Usize, const FIXED: bool> Unpin for SparseSet<Usize, FIXED>where
Usize: Unpin,
impl<Usize, const FIXED: bool> UnwindSafe for SparseSet<Usize, FIXED>where
Usize: 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