Skip to main content

FindSubstSite

Function FindSubstSite 

Source
pub fn FindSubstSite(Stmts: &[Stmt], Target: &str) -> usize
Expand description

Return the index within Stmts of the first statement that contains a reference to Target. Returns Stmts.len() (one past end) when not found, which causes StmtsBetween to be the full slice - the conservative safe choice.