WithMode docs

This commit is contained in:
AF 2023-07-30 15:17:59 +00:00
parent 34b90993d4
commit 2de2ecc07d

View File

@ -221,6 +221,7 @@ impl<T: ?Sized + ImplMode> WithParseMode for T {
type WithMode = WithMode<Self, <Self as ParseMode>::Mode>;
}
/// Used as [`WithParseMode::WithMode`].
pub struct WithMode<T: ?Sized, M: ?Sized>(PhantomData<M>, T);
impl<'a, Ctx: Context<'a>, F: FactoryModeParse<'a, Ctx>> FactoryParse<'a, Ctx> for F {