pub struct Workspace { /* private fields */ }Expand description
Represents the [workspace] section of a Cargo.toml file
Implementations§
Source§impl Workspace
impl Workspace
Sourcepub fn member(&mut self, member: &str) -> &mut Self
pub fn member(&mut self, member: &str) -> &mut Self
Adds a single member to this builder
Will not affect any existing members that have been added
Sourcepub fn members(&mut self, members: &[String]) -> &mut Self
pub fn members(&mut self, members: &[String]) -> &mut Self
Adds a set of members to this builder
WILL replace any existing members that have been added
Sourcepub fn exclude(&mut self, exclude: &str) -> &mut Self
pub fn exclude(&mut self, exclude: &str) -> &mut Self
Adds an exclude to this builder
Will not affect any other excludes that have been added
Trait Implementations§
impl StructuralPartialEq for Workspace
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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<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