Skip to main content

parse_with

Function parse_with 

Source
pub fn parse_with<T, P>(
    parser: &mut P,
    tokens: TokenStream,
) -> Result<T, P::Error>
where P: Parser<T>,
Expand description

Parses an existing token stream with an explicitly selected backend.

§Errors

Returns the selected backend’s error when parsing fails.