[][src]Struct bwapi_wrapper::BWAPI_UnaryFilter

#[repr(C)]pub struct BWAPI_UnaryFilter<Container> {
    pub pred: Container,
    pub _phantom_0: PhantomData<UnsafeCell<Container>>,
}
UnaryFilter allows for logical functor combinations.

@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]

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]

impl<Container: PartialEq> PartialEq<BWAPI_UnaryFilter<Container>> for BWAPI_UnaryFilter<Container>[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

impl<Container> !Sync for BWAPI_UnaryFilter<Container>

impl<Container> Unpin for BWAPI_UnaryFilter<Container> where
    Container: Unpin

impl<Container> UnwindSafe for BWAPI_UnaryFilter<Container> where
    Container: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.