I want to write a rust function which accepts Vec as an input and should be callable from lua.
fn get_data_sql(query: String, param_value: Vec){
println!("Inside get_data_sql");
let (txi, rxi) = futures::sync::mpsc::channel::(1);
............
}
error[E0277]: the trait bound for<'a, 'p> std::vec::Vec<i32>: hlua::LuaRead<&'a mut &'p mut hlua::InsideCallback> is not satisfied
--> src/main.rs:2021:9
I want to write a rust function which accepts Vec as an input and should be callable from lua. fn get_data_sql(query: String, param_value: Vec){
println!("Inside get_data_sql");
let (txi, rxi) = futures::sync::mpsc::channel::(1);
............
}
for<'a, 'p> std::vec::Vec<i32>: hlua::LuaRead<&'a mut &'p mut hlua::InsideCallback>
is not satisfied --> src/main.rs:2021:9for<'a, 'p> hlua::LuaRead<&'a mut &'p mut hlua::InsideCallback>
is not implemented forstd::vec::Vec<i32>