Luna::MemoryLayoutMember

Describes one member used by memory layouting algorithms.

struct Luna::MemoryLayoutMember

Member objects

  • usize size

    The size of this member in bytes. This property is filled by the user before calculating memory layouts.

  • usize alignment

    The alignment requirement of this member in bytes. This property is filled by the user before calculating memory layouts.

  • usize offset

    The offset of this member in bytes. This property is filled by the memory layouting algorithm and can remain uninitialized when calculating memory layouts.