PartialParse

Trait PartialParse 

Source
pub trait PartialParse<Input>: Sized {
    type Error;

    // Required method
    fn partial_parse(input: Input) -> PartialParseResult<Self, Self::Error>;
}
Expand description

Partially parse an input.

Required Associated Types§

Source

type Error

Error that stopped the parsing process.

Required Methods§

Source

fn partial_parse(input: Input) -> PartialParseResult<Self, Self::Error>

Parse an input until completion or when an error occurs.

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> PartialParse<&'a str> for arch_pkg_text::desc::ForgetfulQuerier<'a>

Source§

impl<'a> PartialParse<&'a str> for arch_pkg_text::desc::MemoQuerier<'a>

Source§

impl<'a> PartialParse<&'a str> for arch_pkg_text::srcinfo::ForgetfulQuerier<'a>

Source§

impl<'a> PartialParse<&'a str> for arch_pkg_text::srcinfo::MemoQuerier<'a>

Source§

impl<'a> PartialParse<&'a str> for ParsedDesc<'a>

Source§

impl<'a> PartialParse<&'a str> for ParsedSrcinfo<'a>