pub enum Predicate<_Value: NestedValue = IOValue> {
Selector(Box<Selector<_Value>>),
Not {
pred: Box<Predicate<_Value>>,
},
Or {
preds: Vec<Predicate<_Value>>,
},
And {
preds: Vec<Predicate<_Value>>,
},
}Variants
Selector(Box<Selector<_Value>>)
Not
Or
And
Implementations
sourceimpl Predicate
impl Predicate
pub fn compile(&self) -> Result<CompiledPredicate, CompilationError>
pub fn exec(
&self,
ctxt: &mut Context<'_>,
value: &IOValue
) -> Result<bool, CompilationError>
Trait Implementations
sourceimpl<_Value: Clone + NestedValue> Clone for Predicate<_Value>
impl<_Value: Clone + NestedValue> Clone for Predicate<_Value>
sourceimpl<_Value: Debug + NestedValue> Debug for Predicate<_Value>
impl<_Value: Debug + NestedValue> Debug for Predicate<_Value>
sourceimpl<'de, _Value: NestedValue, R: Reader<'de, _Value>> Deserialize<'de, _Value, R> for Predicate<_Value>
impl<'de, _Value: NestedValue, R: Reader<'de, _Value>> Deserialize<'de, _Value, R> for Predicate<_Value>
fn deserialize(r: &mut R) -> Result<Self, ParseError>
sourceimpl<_Value: Hash + NestedValue> Hash for Predicate<_Value>
impl<_Value: Hash + NestedValue> Hash for Predicate<_Value>
sourceimpl<_Value: Ord + NestedValue> Ord for Predicate<_Value>
impl<_Value: Ord + NestedValue> Ord for Predicate<_Value>
sourceimpl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Parse<_L, _Value> for Predicate<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Parse<_L, _Value> for Predicate<_Value>
fn parse(_ctxt: _L, value: &_Value) -> Result<Self, ParseError>
sourceimpl<_Value: PartialOrd + NestedValue> PartialOrd<Predicate<_Value>> for Predicate<_Value>
impl<_Value: PartialOrd + NestedValue> PartialOrd<Predicate<_Value>> for Predicate<_Value>
sourcefn partial_cmp(&self, other: &Predicate<_Value>) -> Option<Ordering>
fn partial_cmp(&self, other: &Predicate<_Value>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Predicate<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Predicate<_Value>
impl<_Value: NestedValue> Domain for Predicate<_Value>
impl<_Value: Eq + NestedValue> Eq for Predicate<_Value>
impl<_Value: NestedValue> StructuralEq for Predicate<_Value>
impl<_Value: NestedValue> StructuralPartialEq for Predicate<_Value>
Auto Trait Implementations
impl<_Value> RefUnwindSafe for Predicate<_Value> where
_Value: RefUnwindSafe,
impl<_Value> Send for Predicate<_Value> where
_Value: Send,
impl<_Value> Sync for Predicate<_Value> where
_Value: Sync,
impl<_Value> Unpin for Predicate<_Value>
impl<_Value> UnwindSafe for Predicate<_Value> where
_Value: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more