pub enum Entry {
Files(Vec<AbsPathBuf>),
Directories(Directories),
}Expand description
A set of files on the file system.
Variants
Files(Vec<AbsPathBuf>)
The Entry is represented by a raw set of files.
Directories(Directories)
The Entry is represented by Directories.
Implementations
sourceimpl Entry
impl Entry
sourcepub fn rs_files_recursively(base: AbsPathBuf) -> Entry
pub fn rs_files_recursively(base: AbsPathBuf) -> Entry
Returns:
Entry::Directories(Directories {
extensions: ["rs"],
include: [base],
exclude: [base/.git],
})sourcepub fn local_cargo_package(base: AbsPathBuf) -> Entry
pub fn local_cargo_package(base: AbsPathBuf) -> Entry
Returns:
Entry::Directories(Directories {
extensions: ["rs"],
include: [base],
exclude: [base/.git, base/target],
})sourcepub fn cargo_package_dependency(base: AbsPathBuf) -> Entry
pub fn cargo_package_dependency(base: AbsPathBuf) -> Entry
Returns:
Entry::Directories(Directories {
extensions: ["rs"],
include: [base],
exclude: [base/.git, /tests, /examples, /benches],
})sourcepub fn contains_file(&self, path: &AbsPath) -> bool
pub fn contains_file(&self, path: &AbsPath) -> bool
Returns true if path is included in self.
sourcepub fn contains_dir(&self, path: &AbsPath) -> bool
pub fn contains_dir(&self, path: &AbsPath) -> bool
Returns true if path is included in self.
- If
selfisEntry::Files, returnsfalse - Else, see
Directories::contains_dir.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more