pub struct CliTableRegexRule {
pub table_index: usize,
pub row_index: usize,
pub command_regex: Regex,
}Expand description
A rule for matching a command to a specific row in an index table.
Fields§
§table_index: usizeIndex into the tables vector.
row_index: usizeIndex into the rows vector of the selected table.
command_regex: RegexPre-compiled regex for matching the CLI command.
Trait Implementations§
Source§impl Clone for CliTableRegexRule
impl Clone for CliTableRegexRule
Source§fn clone(&self) -> CliTableRegexRule
fn clone(&self) -> CliTableRegexRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CliTableRegexRule
impl RefUnwindSafe for CliTableRegexRule
impl Send for CliTableRegexRule
impl Sync for CliTableRegexRule
impl Unpin for CliTableRegexRule
impl UnwindSafe for CliTableRegexRule
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