pub struct BuiltByContainer(/* private fields */);
Expand description
A set of task dependencies
Implementations§
Source§impl BuiltByContainer
impl BuiltByContainer
Sourcepub const fn new() -> BuiltByContainer
pub const fn new() -> BuiltByContainer
Creates a new, empty built by container
Sourcepub fn with_capacity(capacity: usize) -> BuiltByContainer
pub fn with_capacity(capacity: usize) -> BuiltByContainer
Creates a new, empty built by container with a preset capacity
Sourcepub fn with_buildable<B>(buildable: B) -> BuiltByContainer
pub fn with_buildable<B>(buildable: B) -> BuiltByContainer
Creates a built by container that already contains a given buildable
Sourcepub fn join(self, other: BuiltByContainer) -> BuiltByContainer
pub fn join(self, other: BuiltByContainer) -> BuiltByContainer
Join two BuiltByContainers together
pub fn add<T>(&mut self, buildable: T)
Trait Implementations§
Source§impl Buildable for BuiltByContainer
impl Buildable for BuiltByContainer
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 Clone for BuiltByContainer
impl Clone for BuiltByContainer
Source§fn clone(&self) -> BuiltByContainer
fn clone(&self) -> BuiltByContainer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BuiltByContainer
impl Debug for BuiltByContainer
Source§impl Default for BuiltByContainer
impl Default for BuiltByContainer
Source§fn default() -> BuiltByContainer
fn default() -> BuiltByContainer
Returns the “default value” for a type. Read more
Source§impl From<BuiltByContainer> for BuildableObject
impl From<BuiltByContainer> for BuildableObject
Source§fn from(c: BuiltByContainer) -> BuildableObject
fn from(c: BuiltByContainer) -> BuildableObject
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuiltByContainer
impl !RefUnwindSafe for BuiltByContainer
impl Send for BuiltByContainer
impl Sync for BuiltByContainer
impl Unpin for BuiltByContainer
impl !UnwindSafe for BuiltByContainer
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<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 more