pub struct DefinitionBlock<'a> {
pub name: String,
pub params: Vec<Symbol>,
pub definiendum: &'a LogicExpr<'a>,
pub definiens: &'a LogicExpr<'a>,
}Expand description
A ## Define block: <definiendum>(params) if and only if <definiens>.
Fields§
§name: StringThe definiendum predicate name (the LHS predicate, e.g. "bachelor").
params: Vec<Symbol>The parameter symbols the definiendum binds (its LHS arguments).
definiendum: &'a LogicExpr<'a>The definiendum application — the LHS Predicate of the biconditional.
definiens: &'a LogicExpr<'a>The definiens — the RHS of the biconditional.
Trait Implementations§
Source§impl<'a> Clone for DefinitionBlock<'a>
impl<'a> Clone for DefinitionBlock<'a>
Source§fn clone(&self) -> DefinitionBlock<'a>
fn clone(&self) -> DefinitionBlock<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'a> Freeze for DefinitionBlock<'a>
impl<'a> RefUnwindSafe for DefinitionBlock<'a>
impl<'a> Send for DefinitionBlock<'a>
impl<'a> Sync for DefinitionBlock<'a>
impl<'a> Unpin for DefinitionBlock<'a>
impl<'a> UnsafeUnpin for DefinitionBlock<'a>
impl<'a> UnwindSafe for DefinitionBlock<'a>
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