-
Notifications
You must be signed in to change notification settings - Fork 1
Add PointerSize alignment #6
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgo aheadReviewed, implementation can startReviewed, implementation can startgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
Is your feature request related to a problem? Please describe.
Allow aligning to the target's pointer size.
Describe the solution you'd like
There should be an alignment::PointerSize type that gives an alignment equal to the size of usize.
Describe alternatives you've considered
This can be defined manually using TwoTo<N> and a const function calculating the logarithm of std::mem::size_of::<usize>(), but that's tedious.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgo aheadReviewed, implementation can startReviewed, implementation can startgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed