Enum ra_ap_vfs::loader::Entry [−][src]
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
impl Entry
[src]
pub fn rs_files_recursively(base: AbsPathBuf) -> Entry
[src]
Returns:
Entry::Directories(Directories {
extensions: ["rs"],
include: [base],
exclude: [base/.git],
})
pub fn local_cargo_package(base: AbsPathBuf) -> Entry
[src]
Returns:
Entry::Directories(Directories {
extensions: ["rs"],
include: [base],
exclude: [base/.git, base/target],
})
pub fn cargo_package_dependency(base: AbsPathBuf) -> Entry
[src]
Returns:
Entry::Directories(Directories {
extensions: ["rs"],
include: [base],
exclude: [base/.git, /tests, /examples, /benches],
})
pub fn contains_file(&self, path: &AbsPath) -> bool
[src]
Returns true
if path
is included in self
.
pub fn contains_dir(&self, path: &AbsPath) -> bool
[src]
Returns true
if path
is included in self
.
- If
self
isEntry::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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,