pub struct Pattern {
pub name: String,
pub regex: Regex,
}Expand description
A named regex pattern.
The name is used in the placeholder string and in ScrubReport
counts. The regex is the compiled pattern.
Construct via Pattern::new.
Fields§
§name: StringDisplay name for the pattern. Appears in the placeholder.
regex: RegexCompiled regex.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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