pub struct Rule {
pub pattern_span: Span,
pub pattern: RulePattern,
pub exact_part_count: usize,
pub parameters: Vec<RuleParameter>,
pub expr: Expr,
}
Fields§
§pattern_span: Span
§pattern: RulePattern
§exact_part_count: usize
Used in instruction-matching to prioritize matches with more “exact” pattern-parts
parameters: Vec<RuleParameter>
§expr: Expr
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl !Send for Rule
impl !Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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