pub struct DependentPackageBuilder { /* private fields */ }Implementations§
Source§impl DependentPackageBuilder
impl DependentPackageBuilder
pub fn new( ty: impl Into<String>, name: impl Into<String>, requirement: impl Into<String>, scope: impl Into<String>, ) -> Self
pub fn with_is_runtime(self, is_runtime: bool) -> Self
pub fn with_is_optional(self, is_optional: bool) -> Self
pub fn with_is_resolved(self, is_resolved: bool) -> Self
pub fn with_parents(self, parents: impl IntoIterator<Item = String>) -> Self
pub fn build(self) -> Result<DependentPackage>
Auto Trait Implementations§
impl Freeze for DependentPackageBuilder
impl RefUnwindSafe for DependentPackageBuilder
impl Send for DependentPackageBuilder
impl Sync for DependentPackageBuilder
impl Unpin for DependentPackageBuilder
impl UnsafeUnpin for DependentPackageBuilder
impl UnwindSafe for DependentPackageBuilder
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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