Struct bwapi_wrapper::BWAPI_CompareFilter
source · #[repr(C)]pub struct BWAPI_CompareFilter<Container> {
pub pred: Container,
pub _phantom_0: PhantomData<UnsafeCell<Container>>,
}
Expand description
The CompareFilter is a container in which a stored function predicate returns a value.
Arithmetic and bitwise operators will return a new CompareFilter that applies the operation to the result of the original functor. If any relational operators are used, then it creates a UnaryFilter that returns the result of the operation.@tparam PType The parameter type, which is the type passed into the functor. @tparam RType (optional) The functor’s return type. It is int by default. @tparam Container (optional) Storage container for the function predicate. It is std::function<RType(PType)> by default.
Fields§
§pred: Container
§_phantom_0: PhantomData<UnsafeCell<Container>>
Trait Implementations§
source§impl<Container: Clone> Clone for BWAPI_CompareFilter<Container>
impl<Container: Clone> Clone for BWAPI_CompareFilter<Container>
source§fn clone(&self) -> BWAPI_CompareFilter<Container>
fn clone(&self) -> BWAPI_CompareFilter<Container>
Returns a copy 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<Container: Debug> Debug for BWAPI_CompareFilter<Container>
impl<Container: Debug> Debug for BWAPI_CompareFilter<Container>
source§impl<Container: Hash> Hash for BWAPI_CompareFilter<Container>
impl<Container: Hash> Hash for BWAPI_CompareFilter<Container>
source§impl<Container: PartialEq> PartialEq for BWAPI_CompareFilter<Container>
impl<Container: PartialEq> PartialEq for BWAPI_CompareFilter<Container>
source§fn eq(&self, other: &BWAPI_CompareFilter<Container>) -> bool
fn eq(&self, other: &BWAPI_CompareFilter<Container>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Container: Copy> Copy for BWAPI_CompareFilter<Container>
impl<Container: Eq> Eq for BWAPI_CompareFilter<Container>
impl<Container> StructuralPartialEq for BWAPI_CompareFilter<Container>
Auto Trait Implementations§
impl<Container> !RefUnwindSafe for BWAPI_CompareFilter<Container>
impl<Container> Send for BWAPI_CompareFilter<Container>where
Container: Send,
impl<Container> !Sync for BWAPI_CompareFilter<Container>
impl<Container> Unpin for BWAPI_CompareFilter<Container>where
Container: Unpin,
impl<Container> UnwindSafe for BWAPI_CompareFilter<Container>where
Container: 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