bevy_ecs::entity

Type Alias EntityHashSet

source
pub type EntityHashSet = HashSet<Entity, EntityHash>;
Expand description

A HashSet pre-configured to use EntityHash hashing.

Aliased Type§

struct EntityHashSet { /* private fields */ }

Trait Implementations§

source§

impl WorldEntityFetch for &EntityHashSet

source§

type Ref<'w> = HashMap<Entity, EntityRef<'w>, EntityHash>

The read-only reference type returned by WorldEntityFetch::fetch_ref.
source§

type Mut<'w> = HashMap<Entity, EntityMut<'w>, EntityHash>

The mutable reference type returned by WorldEntityFetch::fetch_mut.
source§

type DeferredMut<'w> = HashMap<Entity, EntityMut<'w>, EntityHash>

The mutable reference type returned by WorldEntityFetch::fetch_deferred_mut, but without structural mutability.
source§

unsafe fn fetch_ref( self, cell: UnsafeWorldCell<'_>, ) -> Result<Self::Ref<'_>, Entity>

Returns read-only reference(s) to the entities with the given Entity IDs, as determined by self. Read more
source§

unsafe fn fetch_mut( self, cell: UnsafeWorldCell<'_>, ) -> Result<Self::Mut<'_>, EntityFetchError>

Returns mutable reference(s) to the entities with the given Entity IDs, as determined by self. Read more
source§

unsafe fn fetch_deferred_mut( self, cell: UnsafeWorldCell<'_>, ) -> Result<Self::DeferredMut<'_>, EntityFetchError>

Returns mutable reference(s) to the entities with the given Entity IDs, as determined by self, but without structural mutability. Read more