Struct cargo_toml_builder::types::Workspace
source · pub struct Workspace { /* private fields */ }
Expand description
Represents the [workspace]
section of a Cargo.toml file
Implementations
sourceimpl 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 RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more