Function ryan::from_reader_with_env
source · pub fn from_reader_with_env<R: Read, T>(
env: &Environment,
reader: R
) -> Result<T, Error>where
T: for<'a> Deserialize<'a>,
Expand description
Loads a Ryan file from a supplied reader 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, built-in functions and
the current_module
name.