Skip to main content

find_rust_struct_span

Function find_rust_struct_span 

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

Find the byte range of a named struct in Rust source (struct Name { ... }).