pub enum FuncBody {
Arithmetic(ArithExpr),
Conditional(CondExpr),
Predicate {
result: String,
body: Vec<BodyLiteral>,
},
}Expand description
Function body - arithmetic, conditional, or predicate-based
Variants§
Arithmetic(ArithExpr)
Pure arithmetic expression: X * X
Conditional(CondExpr)
Conditional expression: if X < 0 then …
Predicate
Predicate-based: P :- parent(X, P)
Trait Implementations§
impl StructuralPartialEq for FuncBody
Auto Trait Implementations§
impl Freeze for FuncBody
impl RefUnwindSafe for FuncBody
impl Send for FuncBody
impl Sync for FuncBody
impl Unpin for FuncBody
impl UnsafeUnpin for FuncBody
impl UnwindSafe for FuncBody
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