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§
sourcefn deserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Self>
fn deserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Self>
Consumes the parser. See Deserializer, Resolver.
sourcefn extend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Self>
fn extend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Self>
Called by finite stream parsers if there’s any data left.