diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index a81f1ff..1f44f38 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -251,9 +251,12 @@ pub type ExtensionResultM<'a, Ctx, F> = /// [`FactoryParse`] equivalent of [`ExtensionSource`]. pub type ExtensionSourceM<'a, Ctx, F> = ExtensionSourceP>; +/// A more generic version of [`FactoryParse`]. pub trait FactoryModeParse<'a, Ctx: Context<'a>>: FactoryBase<'a, Ctx> + ParseMode { + /// A more generic version of [`FactoryParse::deserialize`]. fn mdeserialize>(&self, inctx: I) -> ModeResultM<'a, Ctx, Self, I>; + /// A more generic version of [`FactoryParse::extend`]. fn mextend( &self, mentionable: ExtensionSourceM<'a, Ctx, Self>,