Skip to content

Specification of repr(C) for structs #893

Open
@mahkoh

Description

@mahkoh

The reference provides an algorithm that describes the exact layout of repr(C) structs: https://doc.rust-lang.org/reference/type-layout.html#reprc-structs

Can you confirm that unsafe code can rely on this algorithm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionRequest for comments about the direction of the reference

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions