From 05cb4a2a009d5ee449a292df12fe0e17700e5877 Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 13:55:12 +0000 Subject: [PATCH] `Mode::xbind` docs --- src/rcore/modes.rs | 5 +++++ 1 file changed, 5 insertions(+) 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,