InliningMode
docs
This commit is contained in:
parent
b216fcfe46
commit
4dafd53c67
@ -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>(
|
||||
|
@ -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>(
|
||||
|
Loading…
Reference in New Issue
Block a user