pub struct SubstitutionResult {
pub matched: bool,
pub original: String,
pub command: String,
pub rule: Option<Rule>,
}Expand description
Result of matching and substituting a command
Fields§
§matched: boolWhether a match was found
original: StringOriginal input
command: StringFinal command (substituted or original)
rule: Option<Rule>The rule that matched (if any)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubstitutionResult
impl RefUnwindSafe for SubstitutionResult
impl Send for SubstitutionResult
impl Sync for SubstitutionResult
impl Unpin for SubstitutionResult
impl UnsafeUnpin for SubstitutionResult
impl UnwindSafe for SubstitutionResult
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