pub trait EnvSource {
// Required methods
fn get(&self, name: &str) -> Option<String>;
fn names(&self) -> Vec<String>;
}Expand description
A set of environment variables that can be read and enumerated.
Enumeration is required because catching a misspelled name means noticing a variable that is present but undeclared — which is impossible if you can only look up names you already know.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".