pub struct CargoConfig { /* private fields */ }Expand description
The merged, resolved view of a workspace’s .cargo/config.toml hierarchy plus
$CARGO_HOME/config.toml, for the aliases a manifest actually referenced.
Built by resolve — this type itself is a plain lookup table with no resolution
logic of its own, so a caller holding one can check Self::get without needing to
know anything about tiers, precedence, or the environment.
Implementations§
Source§impl CargoConfig
impl CargoConfig
Sourcepub fn get(&self, alias: &str) -> Option<&ResolvedRegistryEntry>
pub fn get(&self, alias: &str) -> Option<&ResolvedRegistryEntry>
The resolved entry for alias, if it resolved successfully.
Trait Implementations§
Source§impl Debug for CargoConfig
impl Debug for CargoConfig
Source§impl Default for CargoConfig
impl Default for CargoConfig
Source§fn default() -> CargoConfig
fn default() -> CargoConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CargoConfig
impl RefUnwindSafe for CargoConfig
impl Send for CargoConfig
impl Sync for CargoConfig
impl Unpin for CargoConfig
impl UnsafeUnpin for CargoConfig
impl UnwindSafe for CargoConfig
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