pub enum PredicateBody {
Expression(Box<TLExpr>),
Reference {
name: String,
args: Vec<String>,
},
And(Vec<PredicateBody>),
Or(Vec<PredicateBody>),
Not(Box<PredicateBody>),
}Expand description
The body of a composite predicate.
Variants§
Expression(Box<TLExpr>)
A TensorLogic expression
Reference
Reference to another composite predicate
And(Vec<PredicateBody>)
Conjunction of multiple predicates
Or(Vec<PredicateBody>)
Disjunction of multiple predicates
Not(Box<PredicateBody>)
Negation
Trait Implementations§
Source§impl Clone for PredicateBody
impl Clone for PredicateBody
Source§fn clone(&self) -> PredicateBody
fn clone(&self) -> PredicateBody
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 moreSource§impl Debug for PredicateBody
impl Debug for PredicateBody
Source§impl<'de> Deserialize<'de> for PredicateBody
impl<'de> Deserialize<'de> for PredicateBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PredicateBody
impl RefUnwindSafe for PredicateBody
impl Send for PredicateBody
impl Sync for PredicateBody
impl Unpin for PredicateBody
impl UnwindSafe for PredicateBody
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