#[non_exhaustive]
pub enum Pattern {
Exact(String),
Regex(Regex),
Glob(String),
Set(HashSet<String>),
}
Expand description
A filter value (pattern to match with).
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exact(String)
An exact string.
Regex(Regex)
A regex.
Glob(String)
A glob.
This is stored as a string as globs are compiled together rather than on a per-filter basis.
Set(HashSet<String>)
A set of exact strings.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pattern
impl UnwindSafe for Pattern
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more