From f13a1382f8781231e01d375a13041884c87ddf0c Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 17:35:34 +0000 Subject: [PATCH] `FactoryParse` docs --- src/rcore.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rcore.rs b/src/rcore.rs index 602b567..453b540 100644 --- a/src/rcore.rs +++ b/src/rcore.rs @@ -111,8 +111,9 @@ pub trait FactoryBase<'a, Ctx: Context<'a>>: 'a + Send + Sync + Clone { type ParseError: 'a + Error; } +/// [Factory] that allows parsing consuming the parser. pub trait FactoryParse<'a, Ctx: Context<'a>>: FactoryModeParse<'a, Ctx> { - /// See [`Deserializer`], [`Resolver`]. + /// Consumes the parser. See [`Deserializer`], [`Resolver`]. fn deserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Ctx, Self>; /// Called by finite stream parsers if there's any data left. fn extend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Ctx, Self>;