pub struct RecursorRule {
pub ctor: Name,
pub nfields: u32,
pub rhs: Expr,
}Expand description
A single recursor reduction rule.
When the recursor’s major premise is headed by constructor ctor,
the recursor reduces using the rhs expression.
Fields§
§ctor: NameConstructor this rule applies to.
nfields: u32Number of fields for this constructor.
rhs: ExprRight-hand side of the reduction rule.
Trait Implementations§
Source§impl Clone for RecursorRule
impl Clone for RecursorRule
Source§fn clone(&self) -> RecursorRule
fn clone(&self) -> RecursorRule
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 RecursorRule
impl Debug for RecursorRule
Source§impl PartialEq for RecursorRule
impl PartialEq for RecursorRule
impl StructuralPartialEq for RecursorRule
Auto Trait Implementations§
impl Freeze for RecursorRule
impl RefUnwindSafe for RecursorRule
impl Send for RecursorRule
impl Sync for RecursorRule
impl Unpin for RecursorRule
impl UnsafeUnpin for RecursorRule
impl UnwindSafe for RecursorRule
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