Enum ra_ap_vfs::loader::Entry[][src]

pub enum Entry {
    Files(Vec<AbsPathBuf>),
    Directories(Directories),
}

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.

See Directories::contains_file.

pub fn contains_dir(&self, path: &AbsPath) -> bool[src]

Returns true if path is included in self.

Trait Implementations

impl Clone for Entry[src]

impl Debug for Entry[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.