pub enum BuildableObject {
Container(BuiltByContainer),
Id(TaskId),
Other(Arc<dyn Buildable>),
None,
}
Expand description
Holds various type of Buildable
Variants§
Container(BuiltByContainer)
Wrap a container
Id(TaskId)
Wrap a task id
Other(Arc<dyn Buildable>)
Wrap any other type
None
Represents a buildable with no task dependencies
Implementations§
Source§impl BuildableObject
impl BuildableObject
Sourcepub fn new<B>(buildable: B) -> BuildableObject
pub fn new<B>(buildable: B) -> BuildableObject
Create a buildable object from something that can be turned into a buildable
Trait Implementations§
Source§impl Buildable for BuildableObject
impl Buildable for BuildableObject
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 BuildableObject
impl Clone for BuildableObject
Source§fn clone(&self) -> BuildableObject
fn clone(&self) -> BuildableObject
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 BuildableObject
impl Debug for BuildableObject
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.
Source§impl From<TaskId> for BuildableObject
impl From<TaskId> for BuildableObject
Source§fn from(c: TaskId) -> BuildableObject
fn from(c: TaskId) -> BuildableObject
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuildableObject
impl !RefUnwindSafe for BuildableObject
impl Send for BuildableObject
impl Sync for BuildableObject
impl Unpin for BuildableObject
impl !UnwindSafe for BuildableObject
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