Struct cargo_edit::AnyIndexCache
source · pub struct AnyIndexCache { /* private fields */ }
Implementations§
source§impl AnyIndexCache
impl AnyIndexCache
pub fn new(index: AnyIndex) -> Self
sourcepub fn has_krate(&mut self, name: &str) -> CargoResult<bool>
pub fn has_krate(&mut self, name: &str) -> CargoResult<bool>
Determines if the specified crate exists in the crates.io index
sourcepub fn has_krate_version(
&mut self,
name: &str,
version: &str,
) -> CargoResult<Option<bool>>
pub fn has_krate_version( &mut self, name: &str, version: &str, ) -> CargoResult<Option<bool>>
Determines if the specified crate version exists in the crates.io index
pub fn update_krate(&mut self, name: &str)
pub fn krate(&mut self, name: &str) -> CargoResult<Option<IndexKrate>>
Auto Trait Implementations§
impl Freeze for AnyIndexCache
impl !RefUnwindSafe for AnyIndexCache
impl Send for AnyIndexCache
impl Sync for AnyIndexCache
impl Unpin for AnyIndexCache
impl !UnwindSafe for AnyIndexCache
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