From 1423a0359986fc76a0175280062603d6743e6316 Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 15:23:14 +0000 Subject: [PATCH] `FactoryModeParse` docs --- src/rcore/modes.rs | 3 +++ 1 file changed, 3 insertions(+) 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>,