pub struct SimplRule {
pub name: String,
pub pattern: String,
pub replacement: String,
}Expand description
An algebraic identity / rewrite rule (stored as human-readable strings for reporting purposes; actual application is performed programmatically).
Fields§
§name: StringShort name identifying the rule (e.g. "add_zero").
pattern: StringThe pattern this rule matches (e.g. "x + 0").
replacement: StringThe replacement this rule produces (e.g. "x").
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimplRule
impl RefUnwindSafe for SimplRule
impl Send for SimplRule
impl Sync for SimplRule
impl Unpin for SimplRule
impl UnsafeUnpin for SimplRule
impl UnwindSafe for SimplRule
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