Function rune::parse::parse_all

source ·
pub fn parse_all<T>(
    source: &str,
    source_id: SourceId,
    shebang: bool
) -> Result<T>
where T: Parse,
Expand description

Parse the given input as the given type that implements Parse. The specified source_id will be used when referencing any parsed elements. shebang indicates if the parser should try to parse a shebang or not.

This will raise an error through Parser::eof if the specified source is not fully consumed by the parser.