pub struct CompiledPattern {
pub rule: LintRule,
pub elements: Vec<PatternElement>,
}Expand description
A compiled pattern for efficient matching
Fields§
§rule: LintRuleThe original rule
elements: Vec<PatternElement>Pattern elements (words or wildcards)
Implementations§
Trait Implementations§
Source§impl Clone for CompiledPattern
impl Clone for CompiledPattern
Auto Trait Implementations§
impl Forget for CompiledPattern
impl Freeze for CompiledPattern
impl Move for CompiledPattern
impl RefUnwindSafe for CompiledPattern
impl Send for CompiledPattern
impl Sync for CompiledPattern
impl Unpin for CompiledPattern
impl UnsafeUnpin for CompiledPattern
impl UnwindSafe for CompiledPattern
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