Struct wasmtime_environ::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
impl<K> EntitySet<K> where
K: EntityRef,
[src]
impl<K> EntitySet<K> where
K: EntityRef,
[src]Shared EntitySet
implementation for all value types.
pub fn with_capacity(capacity: usize) -> EntitySet<K>
[src]
pub fn with_capacity(capacity: usize) -> EntitySet<K>
[src]Creates a new empty set with the specified capacity.
pub fn cardinality(&self) -> usize
[src]
pub fn cardinality(&self) -> usize
[src]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
.
Trait Implementations
Auto Trait Implementations
impl<K> RefUnwindSafe for EntitySet<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<K> Send for EntitySet<K> where
K: Send,
K: Send,
impl<K> Sync for EntitySet<K> where
K: Sync,
K: Sync,
impl<K> Unpin for EntitySet<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for EntitySet<K> where
K: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more