Type erasure in Rust/C FFI — structs, generics, trait objects
22 views | 21:20 | 2019-08-18 | 1 likes / 0 dislikes
Watch video in Scitech.videoDodgy Coding
Hosted on Scitech.video
Exploring how to create data structures that are owned by C and pass pointers back to Rust to operate on them. This is easy for a basic struct but when you introduce generics or traits, things get interesting.
Content warning: inadvisable C code.
Language | English |
---|---|
Category | Science & Technology |
Licence | Attribution - Share Alike |
NSFW | SFW |