[−][src]Struct cargo_whatfeatures::Registry
Local disk registry (cargo and our own)
Implementations
impl Registry
[src]
pub fn from_local() -> Result<Self>
[src]
Create a registry from the local cache (cargos and ours)
pub fn get(&self, crate_name: &str, crate_version: &str) -> Option<&Crate>
[src]
Tries to get the crate/version from the registry
pub fn purge_local_cache(&mut self) -> Result<usize>
[src]
Purge the local cache, returning how many crates it removed
Auto Trait Implementations
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,