This allows them to be represented as a plain i32 instead of a 5-byte big enum, which in turn allows direct casting between the C and Rust type and fitting the value into a register on 32 bit systems, or even a Result on 64 bit systems.
Example generated code for an example in GStreamer
This allows them to be represented as a plain
i32
instead of a 5-byte big enum, which in turn allows direct casting between the C and Rust type and fitting the value into a register on 32 bit systems, or even aResult
on 64 bit systems.Example generated code for an example in GStreamer