pub struct QuerySystem<F: ToFilter, C: Fn(Query, &mut World) = fn(Query, &mut World)> { /* private fields */ }Expand description
“Dyanmic” System trait
Implementations§
Source§impl<F: ToFilter, C: Fn(Query, &mut World)> QuerySystem<F, C>
impl<F: ToFilter, C: Fn(Query, &mut World)> QuerySystem<F, C>
Sourcepub const fn new(callback: C) -> Self
pub const fn new(callback: C) -> Self
Create a new QuerySystem
Trait Implementations§
Auto Trait Implementations§
impl<F, C> Freeze for QuerySystem<F, C>where
C: Freeze,
impl<F, C> RefUnwindSafe for QuerySystem<F, C>where
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, C> Send for QuerySystem<F, C>
impl<F, C> Sync for QuerySystem<F, C>
impl<F, C> Unpin for QuerySystem<F, C>
impl<F, C> UnsafeUnpin for QuerySystem<F, C>where
C: UnsafeUnpin,
impl<F, C> UnwindSafe for QuerySystem<F, C>where
C: UnwindSafe,
F: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more