Skip to main content

find_zig_struct_span

Function find_zig_struct_span 

Source
pub fn find_zig_struct_span(
    source: &str,
    struct_name: &str,
) -> Option<Range<usize>>
Expand description

Find the byte range of a named Zig struct in source. Matches const Name = [packed|extern ]struct { ... };.