find_brace_after

Function find_brace_after 

Source
fn find_brace_after(src: &str, start: u32) -> Option<u32>
Expand description

Locate the byte position immediately after the first { at or past start. shader_body { … }’s parser hands us a span starting at the keyword, not the brace, so this helper bridges the gap. Returns None when no { is found (malformed source — we skip injection in that case).