Replies: 3 comments 4 replies
-
Hi @apepkuss |
Beta Was this translation helpful? Give feedback.
-
@KeeganJin The answer is Yes. Suppose that you have a complex type named struct Point {
x: f32,
y: f32,
} What you need to do is to implement #[derive(Serialize, Deserialize, Debug)]
struct Point {
x: f32,
y: f32,
} (just as shown in this code) Each time you wanna pass a value of Hope the explanation above can help you! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
@hydai Could you please help answer the question about C/C++ SDK from @dmd17? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Last time I checked the landing page, I found WasmEdge supported Scalar types, String, Vec as Parameter and Scalar types, String, Vec, Tuple, and Result as return values.
But I surprisingly found that it already supported returning complex struct data types (nested) after checking out the wasmedge-bindgen examples. Thanks for the great work.
Is passing complex struct data types(nested) as parameters also supported? Thanks :>
Beta Was this translation helpful? Give feedback.
All reactions