restrict FactoryParse

This commit is contained in:
AF 2023-07-30 17:33:07 +00:00
parent db41cd220f
commit a2cba66a29

View File

@ -111,7 +111,7 @@ pub trait FactoryBase<'a, Ctx: Context<'a>>: 'a + Send + Sync + Clone {
type ParseError: 'a + Error; type ParseError: 'a + Error;
} }
pub trait FactoryParse<'a, Ctx: Context<'a>>: FactoryBase<'a, Ctx> { pub trait FactoryParse<'a, Ctx: Context<'a>>: FactoryModeParse<'a, Ctx> {
/// See [`Deserializer`], [`Resolver`]. /// See [`Deserializer`], [`Resolver`].
fn deserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Ctx, Self>; fn deserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Ctx, Self>;
/// Called by finite stream parsers if there's any data left. /// Called by finite stream parsers if there's any data left.