Mode::xmap_err
docs
This commit is contained in:
parent
1536f38f0b
commit
3e0134d471
@ -59,6 +59,11 @@ pub trait Mode {
|
|||||||
/// Discard any extra information contained in [`Mode::ParseSuccess`].
|
/// Discard any extra information contained in [`Mode::ParseSuccess`].
|
||||||
fn seal<A, I>(s: Self::ParseSuccess<A, I>) -> A;
|
fn seal<A, I>(s: Self::ParseSuccess<A, I>) -> A;
|
||||||
|
|
||||||
|
/// Map the error of an extension result.
|
||||||
|
///
|
||||||
|
/// Useful for for wrappers and chaining parsing after [`InliningFactory`].
|
||||||
|
///
|
||||||
|
/// [`InliningFactory`]: crate::rstd::inlining::InliningFactory
|
||||||
fn xmap_err<A, E0, E1>(
|
fn xmap_err<A, E0, E1>(
|
||||||
result: Self::ExtensionResult<A, E0>,
|
result: Self::ExtensionResult<A, E0>,
|
||||||
f: impl FnOnce(E0) -> E1,
|
f: impl FnOnce(E0) -> E1,
|
||||||
|
Loading…
Reference in New Issue
Block a user