Struct cargo::sources::config::SourceConfigMap
source · pub struct SourceConfigMap<'cfg> { /* private fields */ }
Expand description
Represents the entire [source]
replacement table in Cargo configuration.
Implementations§
source§impl<'cfg> SourceConfigMap<'cfg>
impl<'cfg> SourceConfigMap<'cfg>
sourcepub fn new(config: &'cfg Config) -> CargoResult<SourceConfigMap<'cfg>>
pub fn new(config: &'cfg Config) -> CargoResult<SourceConfigMap<'cfg>>
Like SourceConfigMap::empty
but includes sources from source
replacement configurations.
sourcepub fn empty(config: &'cfg Config) -> CargoResult<SourceConfigMap<'cfg>>
pub fn empty(config: &'cfg Config) -> CargoResult<SourceConfigMap<'cfg>>
Creates the default set of sources that doesn’t take [source]
replacement into account.
Trait Implementations§
source§impl<'cfg> Clone for SourceConfigMap<'cfg>
impl<'cfg> Clone for SourceConfigMap<'cfg>
source§fn clone(&self) -> SourceConfigMap<'cfg>
fn clone(&self) -> SourceConfigMap<'cfg>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'cfg> Freeze for SourceConfigMap<'cfg>
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§
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