pub struct FileSet { /* private fields */ }
Implementations§
Source§impl FileSet
impl FileSet
pub fn new() -> FileSet
pub fn with_path(path: impl AsRef<Path>) -> FileSet
pub fn with_path_providers<I, P>(providers: I) -> FileSetwhere
I: IntoIterator<Item = P>,
P: IntoProvider<PathBuf>,
<P as IntoProvider<PathBuf>>::Provider: 'static,
pub fn with_provider<F, P>(fc_provider: P) -> FileSetwhere
F: FileCollection + Send + Sync + Clone + 'static,
P: IntoProvider<F>,
<P as IntoProvider<F>>::Provider: 'static,
pub fn built_by<B>(&mut self, b: B)
pub fn join(self, other: FileSet) -> FileSet
pub fn insert<T>(&mut self, fileset: T)
pub fn iter(&self) -> FileIterator<'_> ⓘ
Sourcepub fn filter<F>(self, filter: F) -> FileSetwhere
F: FileFilter + 'static,
pub fn filter<F>(self, filter: F) -> FileSetwhere
F: FileFilter + 'static,
Adds a filter to a fileset
Trait Implementations§
Source§impl<F> AddAssign<F> for FileSet
impl<F> AddAssign<F> for FileSet
Source§fn add_assign(&mut self, rhs: F)
fn add_assign(&mut self, rhs: F)
Performs the
+=
operation. Read moreSource§impl Buildable for FileSet
impl Buildable for FileSet
Source§fn get_dependencies(
&self,
project: &Project,
) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
fn get_dependencies( &self, project: &Project, ) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
Gets the dependencies required to build this task
Source§impl Dependency for FileSet
impl Dependency for FileSet
Source§fn dep_type(&self) -> DependencyType
fn dep_type(&self) -> DependencyType
The type of the dependency
Source§fn try_resolve(
&self,
registry: &dyn Registry,
cache_path: &Path,
) -> Result<ResolvedDependency, AcquisitionError>
fn try_resolve( &self, registry: &dyn Registry, cache_path: &Path, ) -> Result<ResolvedDependency, AcquisitionError>
Try to resolve a dependency in a registry. The
cache_path
is somewhere to write files into
if necessary.Source§impl FileCollection for FileSet
impl FileCollection for FileSet
Source§fn 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.
Source§impl<T> From<TaskHandle<T>> for FileSetwhere
T: ArtifactTask,
impl<T> From<TaskHandle<T>> for FileSetwhere
T: ArtifactTask,
Source§fn from(t: TaskHandle<T>) -> FileSet
fn from(t: TaskHandle<T>) -> FileSet
Converts to this type from the input type.
Source§impl<P> FromIterator<P> for FileSet
impl<P> FromIterator<P> for FileSet
Source§impl<'f> IntoIterator for &'f FileSet
impl<'f> IntoIterator for &'f FileSet
Source§impl<'f> IntoIterator for FileSet
impl<'f> IntoIterator for FileSet
Source§impl Provider<FileSet> for Configuration
impl Provider<FileSet> for Configuration
Source§fn missing_message(&self) -> String
fn missing_message(&self) -> String
The missing message for this provider
Source§fn fallible_get(&self) -> Result<T, ProviderError>
fn fallible_get(&self) -> Result<T, ProviderError>
Tries to get a value from this provider, returning an error if not available. Read more
Source§impl Provider<FileSet> for FileSet
impl Provider<FileSet> for FileSet
Source§fn missing_message(&self) -> String
fn missing_message(&self) -> String
The missing message for this provider
Source§fn fallible_get(&self) -> Result<T, ProviderError>
fn fallible_get(&self) -> Result<T, ProviderError>
Tries to get a value from this provider, returning an error if not available. Read more
Auto Trait Implementations§
impl Freeze for FileSet
impl !RefUnwindSafe for FileSet
impl Send for FileSet
impl Sync for FileSet
impl Unpin for FileSet
impl !UnwindSafe for FileSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B> GetBuildable for B
impl<B> GetBuildable for B
Source§fn as_buildable(&self) -> BuildableObject
fn as_buildable(&self) -> BuildableObject
Returns a dependency which contains the tasks which build this object.
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<B> IntoBuildable for Bwhere
B: Buildable,
impl<B> IntoBuildable for Bwhere
B: Buildable,
Source§impl<D> IntoDependency for Dwhere
D: Dependency,
impl<D> IntoDependency for Dwhere
D: Dependency,
type IntoDep = D
Source§fn into_dependency(self) -> <D as IntoDependency>::IntoDep
fn into_dependency(self) -> <D as IntoDependency>::IntoDep
Turn this type into a dependency
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<P, T> IntoProvider<T> for P
impl<P, T> IntoProvider<T> for P
type Provider = P
fn into_provider(self) -> <P as IntoProvider<T>>::Provider
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<P, T> ProviderExt<T> for P
impl<P, T> ProviderExt<T> for P
Source§fn map<R, F>(self, transform: F) -> Map<T, R, F, Self>
fn map<R, F>(self, transform: F) -> Map<T, R, F, Self>
Creates a provider that can map the output of one provider into some other value. Read more
Source§fn flat_map<R, P, F>(self, transform: F) -> FlatMap<T, R, Self, P, F>
fn flat_map<R, P, F>(self, transform: F) -> FlatMap<T, R, Self, P, F>
Creates a provider that can map the output of one provider with type
T
into some other value that’s
also a provider of type R
. The created provider is a provider of type R
Read moreSource§fn flatten<B>(self) -> FlatMap<T, B, Self, T, fn(T) -> T>
fn flatten<B>(self) -> FlatMap<T, B, Self, T, fn(T) -> T>
Flattens a provider that provides another provider