Repository navigation
|
Adding Exampleuse bytemuck::{AnyBitPattern, Pod, Zeroable};
#[derive(Pod, Copy, Clone)]
#[repr(C)]
struct MyPod;
#[derive(Zeroable, Copy, Clone)]
#[repr(C)]
struct MyPodZeroable;
#[derive(AnyBitPattern, Copy, Clone)]
struct MyAnyBitPattern;
#[derive(AnyBitPattern, Zeroable, Copy, Clone)]
struct MyAnyBitPatternZeroable;When compiled, these errors are produced. |
Answered by
Lokathor
Nov 21, 2025
Replies: 1 comment
|
Probably it got this way on accident. I think a change now would break someone somewhere, and it's only a minor annoying thing really, so it's just that way until at least 2.0. |
0 replies
Answer selected by
asasine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably it got this way on accident.
I think a change now would break someone somewhere, and it's only a minor annoying thing really, so it's just that way until at least 2.0.