[][src]Struct cargo_whatfeatures::Registry

pub struct Registry { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.