pub enum AliasRule {
Exact {
alias: String,
original: String,
},
Subst {
pattern: Regex,
replacement: String,
ignore_case: bool,
global: bool,
},
}Expand description
How a written spelling is matched against the canonical one.
Variants§
Exact
The written alias stands for the canonical original.
Subst
A Perl-style substitution s/pattern/replacement/flags applied
to each canonical spelling: the node also answers to what it
produces. i compares case-insensitively; g replaces every
match rather than the first.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AliasRule
impl RefUnwindSafe for AliasRule
impl Send for AliasRule
impl Sync for AliasRule
impl Unpin for AliasRule
impl UnsafeUnpin for AliasRule
impl UnwindSafe for AliasRule
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