pub struct ComponentFilter { /* private fields */ }
Expand description
Used to filter the list of entities based on the components that are attached to them.
Implementations§
Source§impl ComponentFilter
impl ComponentFilter
Sourcepub fn new() -> ComponentFilter
pub fn new() -> ComponentFilter
Create an empty ComponentFilter
.
Sourcepub fn with<C: FamilyMember>(self) -> Self
pub fn with<C: FamilyMember>(self) -> Self
Extend the filter to include the given component type.
Auto Trait Implementations§
impl Freeze for ComponentFilter
impl RefUnwindSafe for ComponentFilter
impl Send for ComponentFilter
impl Sync for ComponentFilter
impl Unpin for ComponentFilter
impl UnwindSafe for ComponentFilter
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