pub struct Glob { /* private fields */ }
Expand description

Glob represents a single glob in a gitignore file.

This is used to report information about the highest precedent glob that matched in one or more gitignore files.

Implementations

Returns the file path that defined this glob.

The original glob as it was defined in a gitignore file.

The actual glob that was compiled to respect gitignore semantics.

Whether this was a whitelisted glob or not.

Whether this glob must match a directory or not.

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.