[−][src]Struct bwapi_wrapper::BWAPI_UnaryFilter
@code Unit myUnit; // The following two if statements are equivalent if ( myUnit->getType().isWorker() && myUnit->isCompleted() && myUnit->isIdle() ) {}
if ( (IsWorker && IsCompleted && IsIdle)(myUnit) ) {} @endcode
@tparam PType The type being passed into the predicate, which will be of type bool(PType). @tparam Container (optional) Storage container for the function predicate. It is std::function<bool(PType)> by default.
Fields
pred: Container
_phantom_0: PhantomData<UnsafeCell<Container>>
Trait Implementations
impl<Container: Clone> Clone for BWAPI_UnaryFilter<Container>
[src]
fn clone(&self) -> BWAPI_UnaryFilter<Container>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Container: Copy> Copy for BWAPI_UnaryFilter<Container>
[src]
impl<Container: Debug> Debug for BWAPI_UnaryFilter<Container>
[src]
impl<Container> Default for BWAPI_UnaryFilter<Container>
[src]
impl<Container: Eq> Eq for BWAPI_UnaryFilter<Container>
[src]
impl<Container: Hash> Hash for BWAPI_UnaryFilter<Container>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Container: PartialEq> PartialEq<BWAPI_UnaryFilter<Container>> for BWAPI_UnaryFilter<Container>
[src]
fn eq(&self, other: &BWAPI_UnaryFilter<Container>) -> bool
[src]
fn ne(&self, other: &BWAPI_UnaryFilter<Container>) -> bool
[src]
impl<Container> StructuralEq for BWAPI_UnaryFilter<Container>
[src]
impl<Container> StructuralPartialEq for BWAPI_UnaryFilter<Container>
[src]
Auto Trait Implementations
impl<Container> !RefUnwindSafe for BWAPI_UnaryFilter<Container>
impl<Container> Send for BWAPI_UnaryFilter<Container> where
Container: Send,
Container: Send,
impl<Container> !Sync for BWAPI_UnaryFilter<Container>
impl<Container> Unpin for BWAPI_UnaryFilter<Container> where
Container: Unpin,
Container: Unpin,
impl<Container> UnwindSafe for BWAPI_UnaryFilter<Container> where
Container: UnwindSafe,
Container: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,