You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
|
2021 | lua.set("get_data_sql", hlua::function2(get_data_sql));
| ^^^ the trait for<'a, 'p> hlua::LuaRead<&'a mut &'p mut hlua::InsideCallback> is not implemented for std::vec::Vec<i32>
|
The text was updated successfully, but these errors were encountered:
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
|
2021 | lua.set("get_data_sql", hlua::function2(get_data_sql));
| ^^^ the trait
for<'a, 'p> hlua::LuaRead<&'a mut &'p mut hlua::InsideCallback>
is not implemented forstd::vec::Vec<i32>
|
The text was updated successfully, but these errors were encountered: