pub struct ResolvedDependencyBuilder { /* private fields */ }Implementations§
Source§impl ResolvedDependencyBuilder
impl ResolvedDependencyBuilder
Sourcepub fn new<A>(artifact: A) -> ResolvedDependencyBuilderwhere
A: IntoArtifact,
pub fn new<A>(artifact: A) -> ResolvedDependencyBuilderwhere
A: IntoArtifact,
Ensures that there’s always at least one artifact in the resolved dependency
Sourcepub fn add<A>(&mut self, artifact: A)where
A: IntoArtifact,
pub fn add<A>(&mut self, artifact: A)where
A: IntoArtifact,
Add an object of type that can be turned into an artifact
Sourcepub fn add_many<I, A>(&mut self, artifacts: I)where
A: IntoArtifact,
I: IntoIterator<Item = A>,
pub fn add_many<I, A>(&mut self, artifacts: I)where
A: IntoArtifact,
I: IntoIterator<Item = A>,
Add objects of type that can be turned into an artifact
Sourcepub fn built_by<B>(self, buildable: B) -> ResolvedDependencyBuilder
pub fn built_by<B>(self, buildable: B) -> ResolvedDependencyBuilder
Add something that builds this dependency
pub fn finish(self) -> ResolvedDependency
Trait Implementations§
Source§impl<A> AddAssign<A> for ResolvedDependencyBuilderwhere
A: IntoArtifact,
impl<A> AddAssign<A> for ResolvedDependencyBuilderwhere
A: IntoArtifact,
Source§fn add_assign(&mut self, rhs: A)
fn add_assign(&mut self, rhs: A)
Performs the
+= operation. Read moreAuto Trait Implementations§
impl Freeze for ResolvedDependencyBuilder
impl !RefUnwindSafe for ResolvedDependencyBuilder
impl Send for ResolvedDependencyBuilder
impl Sync for ResolvedDependencyBuilder
impl Unpin for ResolvedDependencyBuilder
impl !UnwindSafe for ResolvedDependencyBuilder
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> 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<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