From 4dafd53c67372187a0babcc8ae858e824c89421a Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 15:50:23 +0000 Subject: [PATCH] `InliningMode` docs --- src/rcore/modes.rs | 2 +- src/rstd/inlining/modes.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index 6ab69b8..a4fd908 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -307,7 +307,7 @@ impl Mode for RegularMode { /// Tries to extend the value. type ExtensionResult = Result; - /// Allows extending the value. + /// Keeps the value. type ExtensionSource = A; fn bind( diff --git a/src/rstd/inlining/modes.rs b/src/rstd/inlining/modes.rs index 01314e6..52a193f 100644 --- a/src/rstd/inlining/modes.rs +++ b/src/rstd/inlining/modes.rs @@ -1,12 +1,16 @@ use super::*; +/// [`Mode`] for [`InliningFactory`]. pub struct InliningMode; impl Mode for InliningMode { + /// Keeps the parser. type ParseSuccess = (A, I); + /// Always fails. type ExtensionResult = E; + /// Discards the value. type ExtensionSource = (); fn bind(