pub struct ReductionRule {
pub name: String,
pub lhs: String,
pub rhs: String,
}Expand description
A reduction rule (β-reduction).
Fields§
§name: StringName of the rule (e.g., “beta”, “fst-beta”)
lhs: StringLeft-hand side (redex)
rhs: StringRight-hand side (reduct)
Trait Implementations§
Source§impl Clone for ReductionRule
impl Clone for ReductionRule
Source§fn clone(&self) -> ReductionRule
fn clone(&self) -> ReductionRule
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 moreAuto Trait Implementations§
impl Freeze for ReductionRule
impl RefUnwindSafe for ReductionRule
impl Send for ReductionRule
impl Sync for ReductionRule
impl Unpin for ReductionRule
impl UnwindSafe for ReductionRule
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