Skip to main content

error_handler

Function error_handler 

Source
fn error_handler<D: NetdocParseable>(
    input: &ParseInput<'_>,
    items: &ItemStream<'_>,
) -> impl Fn(ErrorProblem) -> ParseError
Expand description

Return a function for converting ErrorProblem to ParseError

For use in .map_err().