pub struct IndexEntry<E: EntityKind> { /* private fields */ }Expand description
IndexEntry
Implementations§
Source§impl<E: EntityKind> IndexEntry<E>
impl<E: EntityKind> IndexEntry<E>
pub fn new(id: E::Id) -> Self
pub fn insert(&mut self, id: E::Id)
pub fn remove(&mut self, id: E::Id)
pub fn contains(&self, id: E::Id) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn iter_ids(&self) -> impl Iterator<Item = E::Id> + '_
pub fn single_id(&self) -> Option<E::Id>
pub fn try_to_raw(&self) -> Result<RawIndexEntry, IndexEntryEncodeError>
Trait Implementations§
Source§impl<E: Clone + EntityKind> Clone for IndexEntry<E>
impl<E: Clone + EntityKind> Clone for IndexEntry<E>
Source§fn clone(&self) -> IndexEntry<E>
fn clone(&self) -> IndexEntry<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug + EntityKind> Debug for IndexEntry<E>
impl<E: Debug + EntityKind> Debug for IndexEntry<E>
Source§impl<E: EntityKind> TryFrom<&IndexEntry<E>> for RawIndexEntry
impl<E: EntityKind> TryFrom<&IndexEntry<E>> for RawIndexEntry
Source§type Error = IndexEntryEncodeError
type Error = IndexEntryEncodeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<E> Freeze for IndexEntry<E>
impl<E> RefUnwindSafe for IndexEntry<E>
impl<E> Send for IndexEntry<E>
impl<E> Sync for IndexEntry<E>
impl<E> Unpin for IndexEntry<E>
impl<E> UnsafeUnpin for IndexEntry<E>
impl<E> UnwindSafe for IndexEntry<E>
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