Function ryan::from_path_with_env

source ·
pub fn from_path_with_env<P: AsRef<Path>, T>(
    env: &Environment,
    path: P
) -> Result<T, Error>where
    T: for<'a> Deserialize<'a>,
Expand description

Loads a Ryan file from disk and executes it, finally building an instance of type T from the execution outcome. This function takes an Environment as a parameter, that lets you have fine-grained control over imports and built-in functions.