[][src]Struct bwapi_wrapper::BWAPI_CompareFilter

#[repr(C)]pub struct BWAPI_CompareFilter<Container> {
    pub pred: Container,
    pub _phantom_0: PhantomData<UnsafeCell<Container>>,
}
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

impl<Container: Clone> Clone for BWAPI_CompareFilter<Container>[src]

impl<Container: Copy> Copy for BWAPI_CompareFilter<Container>[src]

impl<Container: Debug> Debug for BWAPI_CompareFilter<Container>[src]

impl<Container> Default for BWAPI_CompareFilter<Container>[src]

impl<Container: Eq> Eq for BWAPI_CompareFilter<Container>[src]

impl<Container: Hash> Hash for BWAPI_CompareFilter<Container>[src]

impl<Container: PartialEq> PartialEq<BWAPI_CompareFilter<Container>> for BWAPI_CompareFilter<Container>[src]

impl<Container> StructuralEq for BWAPI_CompareFilter<Container>[src]

impl<Container> StructuralPartialEq for BWAPI_CompareFilter<Container>[src]

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

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.