Skip to main content

generate_zig_fix

Function generate_zig_fix 

Source
pub fn generate_zig_fix(layout: &StructLayout) -> String
Expand description

Render a reordered Zig struct definition as source text. Zig structs are declared as const Name = struct { ... };. If the layout is packed, the output uses packed struct.