pub struct EntityRangeVec<I: EntityIdArith, V> { /* private fields */ }Implementations§
Source§impl<I: EntityIdArith, V> EntityRangeVec<I, V>
impl<I: EntityIdArith, V> EntityRangeVec<I, V>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn len_ranges(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn range(&self, idx: I) -> EntityRange<I>
pub fn clear(&mut self)
pub fn ids(&self) -> EntityRange<I>
pub fn next_id(&self) -> I
pub fn values(&self) -> impl DoubleEndedIterator<Item = &V> + ExactSizeIterator
pub fn values_mut( &mut self, ) -> impl DoubleEndedIterator<Item = &mut V> + ExactSizeIterator
pub fn into_values( self, ) -> impl DoubleEndedIterator<Item = V> + ExactSizeIterator
pub fn iter(&self) -> Iter<'_, I, V> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, I, V> ⓘ
pub fn inner_separators( &self, ) -> impl DoubleEndedIterator<Item = I> + ExactSizeIterator
pub fn push(&mut self, num: usize, val: V) -> EntityRange<I>
Trait Implementations§
Source§impl<I: Clone + EntityIdArith, V: Clone> Clone for EntityRangeVec<I, V>
impl<I: Clone + EntityIdArith, V: Clone> Clone for EntityRangeVec<I, V>
Source§impl<I: Debug + EntityIdArith, V: Debug> Debug for EntityRangeVec<I, V>
impl<I: Debug + EntityIdArith, V: Debug> Debug for EntityRangeVec<I, V>
Source§impl<I: EntityIdArith, V> Default for EntityRangeVec<I, V>
impl<I: EntityIdArith, V> Default for EntityRangeVec<I, V>
impl<I: Eq + EntityIdArith, V: Eq> Eq for EntityRangeVec<I, V>
Source§impl<I: Hash + EntityIdArith, V: Hash> Hash for EntityRangeVec<I, V>
impl<I: Hash + EntityIdArith, V: Hash> Hash for EntityRangeVec<I, V>
Source§impl<I: EntityIdArith, V> Index<I> for EntityRangeVec<I, V>
impl<I: EntityIdArith, V> Index<I> for EntityRangeVec<I, V>
Source§impl<I: EntityIdArith, V> IndexMut<I> for EntityRangeVec<I, V>
impl<I: EntityIdArith, V> IndexMut<I> for EntityRangeVec<I, V>
Source§impl<I: EntityIdArith, V> IntoIterator for EntityRangeVec<I, V>
impl<I: EntityIdArith, V> IntoIterator for EntityRangeVec<I, V>
Source§impl<'a, I: EntityIdArith, V> IntoIterator for &'a EntityRangeVec<I, V>
impl<'a, I: EntityIdArith, V> IntoIterator for &'a EntityRangeVec<I, V>
Source§impl<'a, I: EntityIdArith, V> IntoIterator for &'a mut EntityRangeVec<I, V>
impl<'a, I: EntityIdArith, V> IntoIterator for &'a mut EntityRangeVec<I, V>
Source§impl<I: PartialEq + EntityIdArith, V: PartialEq> PartialEq for EntityRangeVec<I, V>
impl<I: PartialEq + EntityIdArith, V: PartialEq> PartialEq for EntityRangeVec<I, V>
impl<I: PartialEq + EntityIdArith, V: PartialEq> StructuralPartialEq for EntityRangeVec<I, V>
Auto Trait Implementations§
impl<I, V> Freeze for EntityRangeVec<I, V>
impl<I, V> RefUnwindSafe for EntityRangeVec<I, V>where
I: RefUnwindSafe,
V: RefUnwindSafe,
impl<I, V> Send for EntityRangeVec<I, V>where
V: Send,
impl<I, V> Sync for EntityRangeVec<I, V>where
V: Sync,
impl<I, V> Unpin for EntityRangeVec<I, V>
impl<I, V> UnsafeUnpin for EntityRangeVec<I, V>
impl<I, V> UnwindSafe for EntityRangeVec<I, V>where
I: UnwindSafe,
V: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.