ParseWithIssues

Trait ParseWithIssues 

Source
pub trait ParseWithIssues<Input, HandleIssue, Error>: Sized {
    // Required method
    fn parse_with_issues(
        input: Input,
        handle_issue: HandleIssue,
    ) -> PartialParseResult<Self, Error>;
}
Expand description

Partially parse an input with an issue handler.

Required Methods§

Source

fn parse_with_issues( input: Input, handle_issue: HandleIssue, ) -> PartialParseResult<Self, Error>

Parse an input until completion or when the issue handler returns an error.

The complete or partial result can be recovered regardless of errors.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, HandleIssue, Error> ParseWithIssues<&'a str, HandleIssue, Error> for arch_pkg_text::desc::ForgetfulQuerier<'a>

Source§

impl<'a, HandleIssue, Error> ParseWithIssues<&'a str, HandleIssue, Error> for arch_pkg_text::desc::MemoQuerier<'a>

Source§

impl<'a, HandleIssue, Error> ParseWithIssues<&'a str, HandleIssue, Error> for arch_pkg_text::srcinfo::ForgetfulQuerier<'a>

Source§

impl<'a, HandleIssue, Error> ParseWithIssues<&'a str, HandleIssue, Error> for arch_pkg_text::srcinfo::MemoQuerier<'a>

Source§

impl<'a, HandleIssue, Error> ParseWithIssues<&'a str, HandleIssue, Error> for ParsedDesc<'a>
where HandleIssue: FnMut(DescParseIssue<'a>) -> Result<(), Error>,

Source§

impl<'a, HandleIssue, Error> ParseWithIssues<&'a str, HandleIssue, Error> for ParsedSrcinfo<'a>
where HandleIssue: FnMut(SrcinfoParseIssue<'a>) -> Result<(), Error>,