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