pub struct Rule {
pub match_pattern: String,
pub regex_pattern: String,
pub line_op: LineOp,
pub record_op: RecordOp,
pub transition: Transition,
pub line_num: usize,
/* private fields */
}Expand description
A rule within a state.
Fields§
§match_pattern: StringOriginal match pattern from template (before variable substitution).
regex_pattern: StringRegex pattern after ${var} substitution.
line_op: LineOpLine operator.
record_op: RecordOpRecord operator.
transition: TransitionState transition.
line_num: usizeLine number in template (for error reporting).
Implementations§
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