Skip to content

Abbreviation for zero-sized types with particular alignment #172

Closed
@gnzlbg

Description

@gnzlbg

We often need to talk about zero-sized types (ZSTs) with a particular alignment requirement, e.g., 1, or in general, N:

#[repr(align(N))] struct Zst;

It was suggested in #164 (comment) that we should have an abbreviation for this defined in the glossary, where we also define the zero-sized type (ZST) abbreviation, to avoid writing "a zero-sized one-aligned type" and similar constructs all over the place.

A proposal was to use the N-ZST schema for an "N-aligned zero-sized type", e.g., 1-ZST would stand for a "one-aligned zero-sized type".

Metadata

Metadata

Assignees

No one assigned

    Labels

    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