pub trait EnvironmentProvider {
// Required method
fn get(&self, name: &str) -> Option<EnvironmentValue>;
}Expand description
Supplies variables to interpolation without granting implicit process-environment access.
Required Methods§
Sourcefn get(&self, name: &str) -> Option<EnvironmentValue>
fn get(&self, name: &str) -> Option<EnvironmentValue>
Returns a variable value, or None when the variable is unset.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".