Skip to main content

Module adt

Module adt 

Source
Expand description

Compute the binary representation of structs, unions and enums

Functions§

layout_of_adt_cycle_result 🔒
layout_of_adt_query
repr_discr 🔒
Finds the appropriate Integer type and signedness for the given signed discriminant range and #[repr] attribute. N.B.: u128 values above i128::MAX will be treated as signed, but that shouldn’t affect anything, other than maybe debuginfo.