Struct grep_cli::DecompressionMatcherBuilder[][src]

pub struct DecompressionMatcherBuilder { /* fields omitted */ }

A builder for a matcher that determines which files get decompressed.

Methods

impl DecompressionMatcherBuilder
[src]

Create a new builder for configuring a decompression matcher.

Build a matcher for determining how to decompress files.

If there was a problem compiling the matcher, then an error is returned.

When enabled, the default matching rules will be compiled into this matcher before any other associations. When disabled, only the rules explicitly given to this builder will be used.

This is enabled by default.

Associates a glob with a command to decompress files matching the glob.

If multiple globs match the same file, then the most recently added glob takes precedence.

The syntax for the glob is documented in the globset crate.

Trait Implementations

impl Clone for DecompressionMatcherBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DecompressionMatcherBuilder
[src]

Formats the value using the given formatter. Read more

impl Default for DecompressionMatcherBuilder
[src]

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

Auto Trait Implementations