Trait radn::rcore::FactoryParse

source ·
pub trait FactoryParse<'a, Ctx: Context<'a>>: FactoryModeParse<'a, Ctx> {
    // Required methods
    fn deserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Self>;
    fn extend(
        &self,
        mentionable: Self::Mtbl,
        tail: &[u8]
    ) -> ParseResult<'a, Self>;
}
Expand description

Factory that allows parsing consuming the parser.

Required Methods§

source

fn deserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Self>

Consumes the parser. See Deserializer, Resolver.

source

fn extend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Self>

Called by finite stream parsers if there’s any data left.

Implementors§

source§

impl<'a, Ctx: Context<'a>, F: FactoryModeParse<'a, Ctx>> FactoryParse<'a, Ctx> for F