pub struct Manifests { /* private fields */ }
Implementations§
Source§impl Manifests
impl Manifests
pub fn open_exclusive(cargo_roots: &Path) -> Result<Self, ManifestsError>
Sourcepub fn load_installed_crates(
&mut self,
) -> Result<BTreeMap<CompactString, Version>, ManifestsError>
pub fn load_installed_crates( &mut self, ) -> Result<BTreeMap<CompactString, Version>, ManifestsError>
cargo-uninstall
can be called to uninstall crates,
but it only updates .crates.toml.
So here we will honour .crates.toml only.
pub fn update(self, metadata_vec: Vec<CrateInfo>) -> Result<(), ManifestsError>
Auto Trait Implementations§
impl Freeze for Manifests
impl RefUnwindSafe for Manifests
impl Send for Manifests
impl Sync for Manifests
impl Unpin for Manifests
impl UnwindSafe for Manifests
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