diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index effbbb4..526e441 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -6,10 +6,18 @@ use super::*; pub type ModeResult = Result<::ParseSuccess, E>; /// Mode of parsing. +/// +/// | [`Mode`] | [`Mode::ParseSuccess`] | [`Mode::ExtensionResult`] | [`Mode::ExtensionSource`] | +/// |------------------|------------------------------|---------------------------------|------------------------------| +/// | [`RegularMode`] | `A` | [`Result`] | `A` | +/// | [`InliningMode`] | `(A, I)` | `E` | [`()`] | +/// +/// [`InliningMode`]: crate::rstd::inlining::InliningMode +/// [`()`]: unit pub trait Mode { /// Successful parsing, may countain the parser itself /// (`I`, usually [`Inlining`]). - /// + /// /// See [`FactoryParse::deserialize`]. type ParseSuccess; @@ -19,7 +27,7 @@ pub trait Mode { type ExtensionResult; /// Data enough to try extending the value. - /// + /// /// May be empty for always-failing extensions. /// /// See [`FactoryParse::extend`].