pub trait FileCollection {
// Required method
fn files(&self) -> HashSet<PathBuf>;
// Provided methods
fn try_files(
&self,
) -> Result<HashSet<PathBuf>, PayloadError<BuildException>> { ... }
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§
Provided Methods§
Sourcefn try_files(&self) -> Result<HashSet<PathBuf>, PayloadError<BuildException>>
fn try_files(&self) -> Result<HashSet<PathBuf>, PayloadError<BuildException>>
Gets the files contained by this collection. Is fallible.
Sourcefn path(&self) -> Result<OsString, JoinPathsError>
fn path(&self) -> Result<OsString, JoinPathsError>
Get this file collection as a path