// We're keeping an owned runtime here, because we need to.
(u64, Variadic<String>)| { this.inc_by(amount, &label_values); Ok(()) }, ); methods.add_method("lookup", |_, this, (name, value): (String, String)| { this.params.insert(name, value); Ok(()) }); methods.add_method( "render", |_, this, counter: LabeledIntCounterVec| { this.update(&counter); Ok(()) }); } } pub fn always() -> Self { Self(initial_seed.into()) } pub fn register(runtime: &Lua, iocaine: &LuaTable) .