3 ms·
C enums in Rust can be declared as: enum Foo { A=0, B=1, C=3, _UNKNOWN(i32), } However, this cannot be compiled by current Rust compiler.
by drran 6y ago
C enums in Rust can be declared as:
enum Foo {
A=0,
B=1,
C=3,
_UNKNOWN(i32),
}
However, this cannot be compiled by current Rust compiler.