pub trait InliningFactory<'a, Ctx: Context<'a>>: FactoryBase<'a> + ParseMode<Mode = InliningMode> {
    // Required methods
    fn extension_error(&self, tail: &[u8]) -> Self::ParseError;
    fn ideserialize<I: InCtx<'a, Ctx>>(
        &self,
        inctx: I
    ) -> IParseResult<'a, Self, I>;
}
Expand description

Factory preserving the parser on success.

Required Methods§

source

fn extension_error(&self, tail: &[u8]) -> Self::ParseError

Always fail on extension, as parsing of an inlining object should be determined without reaching EOF.

source

fn ideserialize<I: InCtx<'a, Ctx>>(&self, inctx: I) -> IParseResult<'a, Self, I>

Inlining version of FactoryParse::deserialize. Preserves the parser.

Implementors§

source§

impl<'a, Ctx: Context<'a>, F: FactoryModeParse<'a, Ctx> + ParseMode<Mode = InliningMode>> InliningFactory<'a, Ctx> for F