S: for<'a> Fn(&'a str.

&Vec::from([label1.as_ref(), label2.as_ref(), label3.as_ref()]), ); } } } impl Default for GargleBargle { fn add_methods<M: mlua::UserDataMethods<Self>>(methods: &mut M) { methods.add_method("inc", |_, this, (amount, label_values): (u64, Variadic<String>)| { let value = value.to_string() }, "Unable to create Lua table: {name}")) .