mention wrappers in Mode docs

This commit is contained in:
AF 2023-07-30 13:59:59 +00:00
parent 368db8a1a4
commit b0b3cc1fe0

View File

@ -36,7 +36,7 @@ pub trait Mode {
/// Do something with the successfully parsed value, potentially failing.
///
/// Useful for chaining parsing after [`InliningFactory`].
/// Useful for for wrappers and chaining parsing after [`InliningFactory`].
///
/// See also [`Mode::map`]
///
@ -48,6 +48,8 @@ pub trait Mode {
/// Map the successfully parsed value.
///
/// Useful for for wrappers.
///
/// See also [`Mode::bind`]
fn map<A0, A1, I>(
s: Self::ParseSuccess<A0, I>,
@ -64,7 +66,7 @@ pub trait Mode {
/// Do something with the extension result, potentially failing.
///
/// Useful for chaining extension after [`InliningFactory`].
/// Useful for wrappers and chaining extension after [`InliningFactory`].
///
/// [`InliningFactory`]: crate::rstd::inlining::InliningFactory
fn xbind<A0, A1, E>(