Skip to main content

compute

Function compute 

Source
pub fn compute(fields: &[FieldDef], mode: StructMode) -> StructLayout
Expand description

Compute the layout for a struct’s fields (which must be ID-sorted, as they are in a validated schema).