Luna::get_type_alignment

usize get_type_alignment(typeinfo_t type)

Gets the alignment requirement of the specified type.

Parameters

  • in type

    The type object.

Return value

Returns the alignment requirement of the specified type in bytes.

Valid Usage

  • type must specify one valid type object.