#[repr(C)]pub struct ecs_filter_desc_t {
pub _canary: i32,
pub terms: [ecs_term_t; 16],
pub terms_buffer: *mut ecs_term_t,
pub terms_buffer_count: i32,
pub storage: *mut ecs_filter_t,
pub instanced: bool,
pub flags: u32,
pub expr: *const i8,
pub entity: u64,
}Expand description
Used with ecs_filter_init.
\ingroup filters
Fields§
§_canary: i32§terms: [ecs_term_t; 16]Terms of the filter. If a filter has more terms than FLECS_TERM_DESC_MAX use terms_buffer
terms_buffer: *mut ecs_term_tFor filters with lots of terms an outside array can be provided.
terms_buffer_count: i32Number of terms in array provided in terms_buffer.
storage: *mut ecs_filter_tExternal storage to prevent allocation of the filter object
instanced: boolWhen true, terms returned by an iterator may either contain 1 or N elements, where terms with N elements are owned, and terms with 1 element are shared, for example from a parent or base entity. When false, the iterator will at most return 1 element when the result contains both owned and shared terms.
flags: u32Flags for advanced usage
expr: *const i8Filter expression. Should not be set at the same time as terms array
entity: u64Entity associated with query (optional)
Trait Implementations§
Source§impl Clone for ecs_filter_desc_t
impl Clone for ecs_filter_desc_t
Source§fn clone(&self) -> ecs_filter_desc_t
fn clone(&self) -> ecs_filter_desc_t
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 ecs_filter_desc_t
impl Debug for ecs_filter_desc_t
impl Copy for ecs_filter_desc_t
Auto Trait Implementations§
impl Freeze for ecs_filter_desc_t
impl RefUnwindSafe for ecs_filter_desc_t
impl !Send for ecs_filter_desc_t
impl !Sync for ecs_filter_desc_t
impl Unpin for ecs_filter_desc_t
impl UnwindSafe for ecs_filter_desc_t
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