Struct cargo_toml_builder::types::PatchSet
source · pub struct PatchSet { /* private fields */ }
Expand description
Represents a patchset for a Cargo.toml
Implementations
sourceimpl PatchSet
impl PatchSet
sourcepub fn patch<D: Into<Dependency>>(&mut self, patch: D) -> &mut Self
pub fn patch<D: Into<Dependency>>(&mut self, patch: D) -> &mut Self
Adds a single patch to this builder
Will not affect any other patches that have been added
sourcepub fn patches(&mut self, patches: &[Dependency]) -> &mut Self
pub fn patches(&mut self, patches: &[Dependency]) -> &mut Self
Adds a set of patches to this builder
WILL replace any existing patches that have been added to this builder
Trait Implementations
impl StructuralPartialEq for PatchSet
Auto Trait Implementations
impl RefUnwindSafe for PatchSet
impl Send for PatchSet
impl Sync for PatchSet
impl Unpin for PatchSet
impl UnwindSafe for PatchSet
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