Skip to content

Type Layout -> Layout; Make values primary #934

@Havvy

Description

@Havvy
Contributor

Values have a defined layout, but types don't always have defined layout.

E.g. dynamically sized types have dynamic types and where padding is located depends on which enum discriminant is active.

As such, we should rename the type layout chapter to just layout and describe it as properties of values and then state that types may have defined properties if all values of the type have the same value for that property.

Activity

added
C-bugIncorrect statements, terminology, or rendering issues
on Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-layoutArea: type layoutC-bugIncorrect statements, terminology, or rendering issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Havvy

        Issue actions

          Type Layout -> Layout; Make values primary · Issue #934 · rust-lang/reference