Skip to content

Representation of unions #13

Description

@nikomatsakis

Discussing how unions are laid out.

  • Is #[repr(C)] meaningful when applie to a union?
  • When (if ever) do we guarantee that all fields start at offset 0?
  • When (if ever) do we guarantee that all fields have the same address?
  • Any key things to note re: FFI interop?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-layoutTopic: Related to data structure layout (`#[repr]`)S-writeup-neededStatus: Ready for a writeup and no one is assigned

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions