[][src]Enum automafish::Condition

pub enum Condition<T> {
    Is(Vec<T>),
    Not(Vec<T>),
    Any,
    None,
}

A basic "is" or "is not" condition criteria.

Variants

Is(Vec<T>)

Matches when the input is one of the values in the Vec.

Not(Vec<T>)

Matches when the input isn't one of the values in the Vec.

Any

Matches any value.

None

Matches no value.

Trait Implementations

impl<T: Clone> Clone for Condition<T>[src]

impl<T: Clone + Copy + PartialEq + Eq + Hash> Criteria for Condition<T>[src]

type Input = T

Input type for the state machien criteria.

impl<T: Debug> Debug for Condition<T>[src]

impl<T: Eq> Eq for Condition<T>[src]

impl<T: Hash> Hash for Condition<T>[src]

impl<T: PartialEq> PartialEq<Condition<T>> for Condition<T>[src]

impl<T> StructuralEq for Condition<T>[src]

impl<T> StructuralPartialEq for Condition<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Condition<T> where
    T: RefUnwindSafe

impl<T> Send for Condition<T> where
    T: Send

impl<T> Sync for Condition<T> where
    T: Sync

impl<T> Unpin for Condition<T> where
    T: Unpin

impl<T> UnwindSafe for Condition<T> where
    T: 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.