From 2de2ecc07d37b3b694e45c934de8b103ecf5fa7c Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 15:17:59 +0000 Subject: [PATCH] `WithMode` docs --- src/rcore/modes.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index 48ca48a..0c82092 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -221,6 +221,7 @@ impl WithParseMode for T { type WithMode = WithMode::Mode>; } +/// Used as [`WithParseMode::WithMode`]. pub struct WithMode(PhantomData, T); impl<'a, Ctx: Context<'a>, F: FactoryModeParse<'a, Ctx>> FactoryParse<'a, Ctx> for F {