pub struct CargoAdapter;Expand description
Cargo Cargo.toml adapter.
Implementations§
Source§impl CargoAdapter
impl CargoAdapter
Sourcepub fn version(self, text: &str) -> Result<Option<String>>
pub fn version(self, text: &str) -> Result<Option<String>>
Read the package version, or None when inherited from the workspace.
Sourcepub fn edit_version(self, text: &str, version: &str) -> Result<String>
pub fn edit_version(self, text: &str, version: &str) -> Result<String>
Replace the package version. Inherited versions must be written at the workspace root.
Sourcepub fn edit_workspace_version(self, text: &str, version: &str) -> Result<String>
pub fn edit_workspace_version(self, text: &str, version: &str) -> Result<String>
Replace [workspace.package].version in a workspace root manifest.
Trait Implementations§
Source§impl Clone for CargoAdapter
impl Clone for CargoAdapter
impl Copy for CargoAdapter
Source§impl Debug for CargoAdapter
impl Debug for CargoAdapter
Auto Trait Implementations§
impl Freeze for CargoAdapter
impl RefUnwindSafe for CargoAdapter
impl Send for CargoAdapter
impl Sync for CargoAdapter
impl Unpin for CargoAdapter
impl UnsafeUnpin for CargoAdapter
impl UnwindSafe for CargoAdapter
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