InliningMode docs

This commit is contained in:
AF 2023-07-30 15:50:23 +00:00
parent b216fcfe46
commit 4dafd53c67
2 changed files with 5 additions and 1 deletions

View File

@ -307,7 +307,7 @@ impl Mode for RegularMode {
/// Tries to extend the value.
type ExtensionResult<A, E> = Result<A, E>;
/// Allows extending the value.
/// Keeps the value.
type ExtensionSource<A> = A;
fn bind<A0, A1, E, I>(

View File

@ -1,12 +1,16 @@
use super::*;
/// [`Mode`] for [`InliningFactory`].
pub struct InliningMode;
impl Mode for InliningMode {
/// Keeps the parser.
type ParseSuccess<A, I> = (A, I);
/// Always fails.
type ExtensionResult<A, E> = E;
/// Discards the value.
type ExtensionSource<A> = ();
fn bind<A0, A1, E, I>(