Skip to main content

extract

Function extract 

Source
pub fn extract(source: &str, offset: usize) -> Locals
Expand description

Scan the buffer for the function header that encloses offset. When the cursor sits outside any function the returned struct is empty.