Enum preserves_path::schemas::path::Predicate
source · 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§
Implementations§
source§impl Predicate
impl Predicate
pub fn compile(&self) -> Result<CompiledPredicate, CompilationError>
pub fn exec(
&self,
ctxt: &mut Context<'_>,
value: &IOValue
) -> Result<bool, CompilationError>
Trait Implementations§
source§impl<_Value: NestedValue> Deserialize<_Value> for Predicate<_Value>
impl<_Value: NestedValue> Deserialize<_Value> for Predicate<_Value>
fn deserialize<'de, R: Reader<'de, _Value>>(
r: &mut R
) -> Result<Self, ParseError>
source§impl<_Value: NestedValue> Domain for Predicate<_Value>
impl<_Value: NestedValue> Domain for Predicate<_Value>
source§impl<_Value: Ord + NestedValue> Ord for Predicate<_Value>
impl<_Value: Ord + NestedValue> Ord for Predicate<_Value>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'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>
source§impl<_Value: PartialEq + NestedValue> PartialEq<Predicate<_Value>> for Predicate<_Value>
impl<_Value: PartialEq + NestedValue> PartialEq<Predicate<_Value>> for Predicate<_Value>
source§impl<_Value: PartialOrd + NestedValue> PartialOrd<Predicate<_Value>> for Predicate<_Value>
impl<_Value: PartialOrd + NestedValue> PartialOrd<Predicate<_Value>> for Predicate<_Value>
1.0.0 · source§fn 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