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 the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Directories
impl Send for Directories
impl Sync for Directories
impl Unpin for Directories
impl UnwindSafe for Directories
Blanket Implementations
Mutably borrows from an owned value. Read more