pub enum PatternConstraint {
Simple {
field: String,
operator: String,
value: FactValue,
},
Binding {
field: String,
variable: Variable,
},
Variable {
field: String,
operator: String,
variable: Variable,
},
}Expand description
Pattern constraint with optional variable binding
Variants§
Simple
Simple constraint: field op value
Binding
Binding constraint: field = $var (binds value to variable)
Variable
Variable constraint: field op $var (compare with bound variable)
Implementations§
Trait Implementations§
Source§impl Clone for PatternConstraint
impl Clone for PatternConstraint
Source§fn clone(&self) -> PatternConstraint
fn clone(&self) -> PatternConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PatternConstraint
impl RefUnwindSafe for PatternConstraint
impl Send for PatternConstraint
impl Sync for PatternConstraint
impl Unpin for PatternConstraint
impl UnwindSafe for PatternConstraint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more