Skip to content

Add PointerSize alignment #6

@V0ldek

Description

@V0ldek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgo aheadReviewed, implementation can startgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions