How do I create FFI bindings to C functions expecting OR-ed bytes?
hop of those help? The problem is that C's enum and Rust's enum are very
different things. In particular, C allows an enum to have absolutely any
value whatsoever, whether or not that value corresponds to a variant.Rust
does not. Rust relies on enums
Date : November 24 2020, 03:01 PM , By : dennisnguyen