IParseResult

This commit is contained in:
AF 2023-06-28 15:41:57 +00:00
parent 882a667249
commit 59e3e4f5d6

View File

@ -66,6 +66,9 @@ impl<'a: 'c, 'c, Ctx: Context<'a>> InlineableDeCtx<'a, Ctx> for InlineableDeCtxT
} }
} }
pub type IParseResult<'a, Ctx, F, I> =
Result<(Mtbl<'a, Ctx, F>, I), <F as Factory<'a, Ctx>>::ParseError>;
/// This factory should return an error on EOF. /// This factory should return an error on EOF.
pub trait InlineableFactory<'a, Ctx: Context<'a>>: Factory<'a, Ctx> { pub trait InlineableFactory<'a, Ctx: Context<'a>>: Factory<'a, Ctx> {
fn extension_error(&self, tail: &[u8]) -> Self::ParseError; fn extension_error(&self, tail: &[u8]) -> Self::ParseError;