Skip to main content

EnvLookup

Trait EnvLookup 

Source
pub trait EnvLookup {
    // Required method
    fn get_env(&self, key: &str) -> Option<&str>;
}

Required Methods§

Source

fn get_env(&self, key: &str) -> Option<&str>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EnvLookup for Arc<HashMap<String, String>>

Source§

fn get_env(&self, key: &str) -> Option<&str>

Source§

impl EnvLookup for HashMap<String, String>

Source§

fn get_env(&self, key: &str) -> Option<&str>

Implementors§