D
repr(u*) енам в u* можно же?Size: a a a
D
repr(u*) енам в u* можно же?S
In the future, Rust will have a second kind of declarative macro that will work in a similar fashion but fix some of these edge cases. After that update, macro_rules! will be effectively deprecated.
Э
In the future, Rust will have a second kind of declarative macro that will work in a similar fashion but fix some of these edge cases. After that update, macro_rules! will be effectively deprecated.
Э
S
D
D
AV
AV
AV
as выбирает дискриминант из енама, видимо? И repr(u8) гарантирует только #[repr(C)] и то, что дискриминант помещается в u8IG
ref-cast крейтIG
D
ref_cast_mutЭ
Э
AV
Э
EG
enum A {
A
}#[repr(C)] или #[repr(u*)] придётся реально его хранить