pub fn evaluate_and_load_file<F>(file: &str, evaluate: F) -> EnvmntResult<()>
where
    F: Fn(String) -> String,
{
    file::evaluate_and_load_file(file, evaluate)
}
/// Parses the provided env file and loads all environment variables.
///
/// # Arguments
///
/// * `file` - The file path to load and parse
/// * `evaluate` - Evalute function which will modify the read value before it is loaded into the environment
///
/// # Example
///
/// ```
/// fn main() {
///     let eval_env = |value: String| {
///         let mut buffer = String::from("PREFIX-");
///         buffer.push_str(&value);
///         buffer
///     };
///
///     let output = envmnt::evaluate_and_load_file("./src/test/var.env", eval_env);
///
///     assert!(output.is_ok());
/// }
/// ```
Parses the provided env file and loads all environment variables.
Parses the provided env file and loads all environment variables .
pub fn evaluate_and_load_file<F>(file: &str, evaluate: F) -> EnvmntResult<()>
where
    F: Fn(String) -> String,
{
    file::evaluate_and_load_file(file, evaluate)
}
pub fn evaluate_and_load_file < F > ( file : & str , evaluate : F ) -> EnvmntResult < ( ) > where F : Fn ( String ) -> String , { file :: evaluate_and_load_file ( file , evaluate ) }
Parses the provided env file and loads all environment variables.
Parses the provided env file and loads all environment variables .
file
&str
evaluate
F
file
&str
evaluate
F
example
```
fn main() {
let eval_env = |value: String| {
let mut buffer = String::from("PREFIX-");
buffer.push_str(&value);
buffer
}.

let output = envmnt::evaluate_and_load_file("./src/test/var.env", eval_env).


` ` ` fn main () { let eval_env = |value : String| { let mut buffer = String :: from ( " PREFIX - " ) ; buffer . push_str ( &value ) ; buffer } . let output = envmnt :: evaluate_and_load_file ( " . / src / test / var . env " eval_env ) .