[][src]Enum phreak_engine::predicates::TestCondition

pub enum TestCondition {
    Equal(Eq),
    NotEqual(Ne),
    GreaterEqual(Ge),
    LessEqual(Le),
    GreaterThan(Gt),
    LessThan(Lt),
}

An enum is faster than a dyn Trait dispatch

Variants

Equal(Eq)
NotEqual(Ne)
GreaterEqual(Ge)
LessEqual(Le)
GreaterThan(Gt)
LessThan(Lt)

Implementations

impl TestCondition[src]

pub fn eval(&self, left: &Value, right: &Value) -> bool[src]

Trait Implementations

impl Clone for TestCondition[src]

impl Copy for TestCondition[src]

impl Debug for TestCondition[src]

impl<'de> Deserialize<'de> for TestCondition[src]

impl Eq for TestCondition[src]

impl PartialEq<TestCondition> for TestCondition[src]

impl Serialize for TestCondition[src]

impl StructuralEq for TestCondition[src]

impl StructuralPartialEq for TestCondition[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,