tvix_serde::de

Function from_str_with_config

source
pub fn from_str_with_config<'code, T, F>(
    src: &'code str,
    config: F,
) -> Result<T, Error>
where T: Deserialize<'code>, F: for<'co, 'ro, 'env> FnOnce(EvaluationBuilder<'co, 'ro, 'env, Box<dyn EvalIO>>) -> EvaluationBuilder<'co, 'ro, 'env, Box<dyn EvalIO>>,
Expand description

Evaluate the Nix code in src, with extra configuration for the tvix_eval::Evaluation provided by the given closure.