Struct ra_ap_vfs::loader::Directories[][src]

pub struct Directories {
    pub extensions: Vec<String>,
    pub include: Vec<AbsPathBuf>,
    pub exclude: Vec<AbsPathBuf>,
}
Expand description

Specifies a set of files on the file system.

A file is included if:

  • it has included extension
  • it is under an include path
  • it is not under exclude path

If many include/exclude paths match, the longest one wins.

If a path is in both include and exclude, the exclude one wins.

Fields

extensions: Vec<String>include: Vec<AbsPathBuf>exclude: Vec<AbsPathBuf>

Implementations

Returns true if path is included in self.

Returns true if path is included in self.

Since path is supposed to be a directory, this will not take extension into account.

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

Returns the “default value” for a type. 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

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.