Struct grep_cli::DecompressionMatcher [−][src]
pub struct DecompressionMatcher { /* fields omitted */ }Expand description
A matcher for determining how to decompress files.
Implementations
Create a new matcher with default rules.
To add more matching rules, build a matcher with
DecompressionMatcherBuilder.
Return a pre-built command based on the given file path that can
decompress its contents. If no such decompressor is known, then this
returns None.
If there are multiple possible commands matching the given path, then the command added last takes precedence.
Returns true if and only if the given file path has at least one matching command to perform decompression on.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DecompressionMatcherimpl Send for DecompressionMatcherimpl Sync for DecompressionMatcherimpl Unpin for DecompressionMatcherimpl UnwindSafe for DecompressionMatcherBlanket Implementations
Mutably borrows from an owned value. Read more