pub struct PeepRule {
pub pattern: PeepPattern,
pub replacement: PeepReplacement,
pub priority: i32,
}Expand description
A complete peephole optimisation rule: pattern → replacement.
Fields§
§pattern: PeepPatternThe pattern to look for.
replacement: PeepReplacementThe replacement to emit when the pattern fires.
priority: i32Higher priority rules are tried first.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeepRule
impl RefUnwindSafe for PeepRule
impl Send for PeepRule
impl Sync for PeepRule
impl Unpin for PeepRule
impl UnsafeUnpin for PeepRule
impl UnwindSafe for PeepRule
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