diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index 13b2a8f..c724345 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -62,6 +62,11 @@ pub trait Mode { f: impl FnOnce(E0) -> E1, ) -> Self::ExtensionResult; + /// Do something with the extension result, potentially failing. + /// + /// Useful for chaining extension after [`InliningFactory`]. + /// + /// [`InliningFactory`]: crate::rstd::inlining::InliningFactory fn xbind( result: Self::ExtensionResult, f: impl FnOnce(A0) -> Result,