-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const
-ify casting functions
#280
Comments
The by-value The by-immutable-ref Note that the by-immutable-ref Because of this, Footnotes
|
What I've done for byte including before is the included bytes are actually an array to start, so the Align4 can take the array by value, align it to 4 (which adds padding if it's not a multiple of 4 in length!), and then your data could be transmuted to u32 or whatever. |
I don't know if it's possible, but it would be great if the
bytemuck::cast*
functions whereconst fn
so that we couldinclude_bytes!
into a struct or a list of structs.The text was updated successfully, but these errors were encountered: