Struct cranelift_entity::EntitySet [−][src]
pub struct EntitySet<K> where
K: EntityRef, { /* fields omitted */ }
Expand description
A set of K
for densely indexed entity references.
The EntitySet
data structure uses the dense index space to implement a set with a bitvector.
Like SecondaryMap
, an EntitySet
is used to associate secondary information with entities.
Implementations
Shared EntitySet
implementation for all value types.
Creates a new empty set with the specified capacity.
Returns the cardinality of the set. More precisely, it returns the number of calls to
insert
with different key values, that have happened since the the set was most recently
clear
ed or created with new
.
Iterate over all the keys in this set.
Resize the set to have n
entries by adding default entries as needed.
Trait Implementations
Auto Trait Implementations
impl<K> RefUnwindSafe for EntitySet<K> where
K: RefUnwindSafe,
impl<K> UnwindSafe for EntitySet<K> where
K: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more