#[repr(C)]pub struct WorldEntityQuery {
pub layer_mask: u64,
pub num_include_tags: u8,
pub num_exclude_tags: u8,
pub _pad0: [u8; 6],
pub include_tags: [u64; 16],
pub exclude_tags: [u64; 16],
pub query_type: WorldEntityQueryType,
pub _pad1: u32,
pub root_entity: EntityHandle,
}Expand description
Struct describing a query for entities in the world.
A query with layer_mask = !0u64, num_include_tags = 0, num_exclude_tags = 0,
will mean all the entities in the world.
Retrieving output of the data will get all the entities the query results in.
Fields§
§layer_mask: u64What layers to include
Number of tags to include
Number of tags to exclude
_pad0: [u8; 6]§query_type: WorldEntityQueryType§_pad1: u32§root_entity: EntityHandleTrait Implementations§
Source§impl CheckedBitPattern for WorldEntityQuery
impl CheckedBitPattern for WorldEntityQuery
Source§type Bits = WorldEntityQueryBits
type Bits = WorldEntityQueryBits
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &WorldEntityQueryBits) -> bool
fn is_valid_bit_pattern(bits: &WorldEntityQueryBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl Clone for WorldEntityQuery
impl Clone for WorldEntityQuery
Source§fn clone(&self) -> WorldEntityQuery
fn clone(&self) -> WorldEntityQuery
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 Debug for WorldEntityQuery
impl Debug for WorldEntityQuery
impl Copy for WorldEntityQuery
impl NoUninit for WorldEntityQuery
Auto Trait Implementations§
impl Freeze for WorldEntityQuery
impl RefUnwindSafe for WorldEntityQuery
impl Send for WorldEntityQuery
impl Sync for WorldEntityQuery
impl Unpin for WorldEntityQuery
impl UnwindSafe for WorldEntityQuery
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