pub enum Clause {
Pattern(Pattern),
Predicate {
name: String,
args: Vec<Term>,
},
Function {
name: String,
args: Vec<Term>,
binding: Binding,
},
Not {
vars: Option<Vec<Var>>,
clauses: Vec<Clause>,
},
Or {
vars: Option<Vec<Var>>,
branches: Vec<Vec<Clause>>,
},
Rule {
name: String,
args: Vec<Term>,
},
}Expand description
A :where clause.
Variants§
Pattern(Pattern)
A data pattern [src? e a v tx? added?].
Predicate
A predicate [(name args...)].
Function
A function [(name args...) binding].
Not
(not clauses...) or (not-join [vars] clauses...).
Fields
Or
(or branches...) or (or-join [vars] branches...).
Fields
Rule
A rule invocation (rule-name args...).
Trait Implementations§
impl Eq for Clause
impl StructuralPartialEq for Clause
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request