pub struct LocalizedConfig {
    pub config: Config,
    pub workspace: PathBuf,
}

Fields

config: Configworkspace: PathBuf

The directory containing ./.cargo/config.toml

Implementations

Search for and open .cargo/config.toml in any parent of the workspace root path.

Read an environment variable from the [env] section in this .cargo/config.toml.

It is interpreted as path and canonicalized relative to Self::workspace if EnvOption::Value::relative is set.

Process environment variables (from std::env::var()) have precedence unless EnvOption::Value::force is set. This value is also returned if the given key was not set under [env].

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.