Struct grep_cli::DecompressionMatcher[][src]

pub struct DecompressionMatcher { /* fields omitted */ }

A matcher for determining how to decompress files.

Methods

impl DecompressionMatcher
[src]

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

impl Clone for DecompressionMatcher
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DecompressionMatcher
[src]

Formats the value using the given formatter. Read more

impl Default for DecompressionMatcher
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations