zachs18

Results 66 comments of zachs18

Tracking issue opened: rust-lang/rust#147949

> ```rust > pub enum ColorUsize { > Red(usize), > Green(usize), > } > ``` > > In an enum like this, assuming 64-bit for sake of argument, the tag...

Could we get a new `bytemuck` release too? The changes for `derive(CheckedBitPattern)` on `#[repr(C)]` fieldless enums rely on the new `doc(hidden)` `EnumTagIntegerBytes` trait in the `doc(hidden)` `pub mod derive`, which...

> [in repr(C) structs] I propose defining fields after the DST field to always have the same offset as the DST field itself, i.e., if said field were zero. We...

> whether taking a reference to a ZST ever creates a pointer inside its struct at all. Yes, `&struct.field` will give a pointer that is inbounds of `struct`[^1]. > but...

`Pod` existed in bytemuck 1.0.0, but `NoUninit` and `AnyBitPattern` were added later. `Pod` is semantically equivalent to `AnyBitPattern + NoUninit`, but it would be a breaking change to "invert" the...