pub struct Not<Filter> { /* private fields */ }Expand description
Filter using the logical inverse of another Filter.
This filters out any entities which would not have been filtered by the Filter.
§Example
use brood::query::filter;
// Define a component.
struct Foo(usize);
// Define a filter for the component above.
type HasFoo = filter::Has<Foo>;
// Define a component that is the inverse of the filter above.
type DoesNotHaveFoo = filter::Not<HasFoo>;Trait Implementations§
Auto Trait Implementations§
impl<Filter> Freeze for Not<Filter>
impl<Filter> RefUnwindSafe for Not<Filter>where
Filter: RefUnwindSafe,
impl<Filter> Send for Not<Filter>where
Filter: Send,
impl<Filter> Sync for Not<Filter>where
Filter: Sync,
impl<Filter> Unpin for Not<Filter>where
Filter: Unpin,
impl<Filter> UnsafeUnpin for Not<Filter>
impl<Filter> UnwindSafe for Not<Filter>where
Filter: 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