Skip to main content

find_c_struct_span

Function find_c_struct_span 

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

Find the byte range of a named struct/union in C/C++ source. The range covers from struct/union Name through the closing };.