pub struct BuiltByContainer(/* private fields */);Expand description
A set of task dependencies
Implementations§
Source§impl BuiltByContainer
impl BuiltByContainer
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a new, empty built by container with a preset capacity
Sourcepub fn with_buildable<B: IntoBuildable>(buildable: B) -> Selfwhere
<B as IntoBuildable>::Buildable: 'static,
pub fn with_buildable<B: IntoBuildable>(buildable: B) -> Selfwhere
<B as IntoBuildable>::Buildable: 'static,
Creates a built by container that already contains a given buildable
pub fn add<T: IntoBuildable>(&mut self, buildable: T)where
<T as IntoBuildable>::Buildable: 'static,
Trait Implementations§
Source§impl Buildable for BuiltByContainer
impl Buildable for BuiltByContainer
Source§fn get_dependencies(&self, project: &Project) -> ProjectResult<HashSet<TaskId>>
fn get_dependencies(&self, project: &Project) -> ProjectResult<HashSet<TaskId>>
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 duplicate 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) -> Self
fn from(c: BuiltByContainer) -> Self
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