pub struct With<T: 'static>(/* private fields */);Expand description
Presence of component T, without borrowing its value.
Used as a type argument; see World::query_filtered for a runnable example.
Trait Implementations§
impl<T: 'static> QueryFilter for With<T>
Auto Trait Implementations§
impl<T> Freeze for With<T>
impl<T> RefUnwindSafe for With<T>
impl<T> Send for With<T>
impl<T> Sync for With<T>
impl<T> Unpin for With<T>
impl<T> UnwindSafe for With<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