Skip to main content

extract

Function extract 

Source
pub fn extract(
    filename: &str,
    bytes: &[u8],
    templates: &[ResultTemplate],
) -> Vec<ResultInput>
Expand description

The values the templates find in one file (bytes = its beginning; for an HTML report the text htmltext extracted in the isolated child, with table rows as lines and cells separated by | – the server never parses HTML itself). A template that does not match yields nothing; each value carries its source file:line.