From 031ea2a0e9e68e74d74f46d31261edefd1c3a3f5 Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 15:24:52 +0000 Subject: [PATCH] `FactoryModeProxy` docs --- src/rcore/modes.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index 1f44f38..773225d 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -264,11 +264,15 @@ pub trait FactoryModeParse<'a, Ctx: Context<'a>>: FactoryBase<'a, Ctx> + ParseMo ) -> ExtensionResultM<'a, Ctx, Self>; } +/// External implementation of [`FactoryModeParse`]. pub trait FactoryModeProxy<'a, Ctx: Context<'a>> { + /// Associated [`FactoryModeParse`]. type F: FactoryBase<'a, Ctx> + ParseMode; + /// External implementation of [`FactoryModeParse::mdeserialize`]. fn pmdeserialize>(f: &Self::F, inctx: I) -> ModeResultM<'a, Ctx, Self::F, I>; + /// External implementation of [`FactoryModeParse::mextend`]. fn pmextend( f: &Self::F, mentionable: ExtensionSourceM<'a, Ctx, Self::F>,