Trait FileCollection

Source
pub trait FileCollection {
    // Required method
    fn files(&self) -> HashSet<PathBuf>;

    // Provided methods
    fn try_files(&self) -> BuildResult<HashSet<PathBuf>> { ... }
    fn is_empty(&self) -> bool { ... }
    fn path(&self) -> Result<OsString, JoinPathsError> { ... }
}
Expand description

A file set is a collection of files. File collections are intended to be live.

Required Methods§

Source

fn files(&self) -> HashSet<PathBuf>

Gets the files contained by this collection.

Provided Methods§

Source

fn try_files(&self) -> BuildResult<HashSet<PathBuf>>

Gets the files contained by this collection. Is fallible.

Source

fn is_empty(&self) -> bool

Gets whether this file collection is empty or not

Source

fn path(&self) -> Result<OsString, JoinPathsError>

Get this file collection as a path

Implementations on Foreign Types§

Source§

impl FileCollection for PathBuf

Source§

impl<P: AsRef<Path>> FileCollection for LinkedList<P>

Source§

impl<P: AsRef<Path>> FileCollection for VecDeque<P>

Source§

impl<P: AsRef<Path>> FileCollection for Vec<P>

Source§

impl<P: AsRef<Path>> FileCollection for HashSet<P>

Implementors§