Struct globset::GlobSet[][src]

pub struct GlobSet { /* fields omitted */ }
Expand description

GlobSet represents a group of globs that can be matched together in a single pass.

Implementations

Create an empty GlobSet. An empty set matches nothing.

Returns true if this set is empty, and therefore matches nothing.

Returns the number of globs in this set.

Returns true if any glob in this set matches the path given.

Returns true if any glob in this set matches the path given.

This takes a Candidate as input, which can be used to amortize the cost of preparing a path for matching.

Returns the sequence number of every glob pattern that matches the given path.

Returns the sequence number of every glob pattern that matches the given path.

This takes a Candidate as input, which can be used to amortize the cost of preparing a path for matching.

Adds the sequence number of every glob pattern that matches the given path to the vec given.

into is cleared before matching begins, and contains the set of sequence numbers (in ascending order) after matching ends. If no globs were matched, then into will be empty.

Adds the sequence number of every glob pattern that matches the given path to the vec given.

into is cleared before matching begins, and contains the set of sequence numbers (in ascending order) after matching ends. If no globs were matched, then into will be empty.

This takes a Candidate as input, which can be used to amortize the cost of preparing a path for matching.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Create a default empty GlobSet.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.