[][src]Struct cargo::sources::config::SourceConfigMap

pub struct SourceConfigMap<'cfg> { /* fields omitted */ }

Implementations

impl<'cfg> SourceConfigMap<'cfg>[src]

pub fn new(config: &'cfg Config) -> CargoResult<SourceConfigMap<'cfg>>[src]

pub fn empty(config: &'cfg Config) -> CargoResult<SourceConfigMap<'cfg>>[src]

pub fn config(&self) -> &'cfg Config[src]

pub fn load(
    &self,
    id: SourceId,
    yanked_whitelist: &HashSet<PackageId>
) -> CargoResult<Box<dyn Source + 'cfg>>
[src]

Get the Source for a given SourceId.

Trait Implementations

impl<'cfg> Clone for SourceConfigMap<'cfg>[src]

Auto Trait Implementations

impl<'cfg> !RefUnwindSafe for SourceConfigMap<'cfg>

impl<'cfg> !Send for SourceConfigMap<'cfg>

impl<'cfg> !Sync for SourceConfigMap<'cfg>

impl<'cfg> Unpin for SourceConfigMap<'cfg>

impl<'cfg> !UnwindSafe for SourceConfigMap<'cfg>

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,