From e97af875cb7a78d88ca2139fc124126805cd976c Mon Sep 17 00:00:00 2001 From: timofey Date: Sat, 1 Jul 2023 00:09:16 +0000 Subject: [PATCH] `InCtx` docs --- src/rcore/inctx.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rcore/inctx.rs b/src/rcore/inctx.rs index 418fa8a..13342f2 100644 --- a/src/rcore/inctx.rs +++ b/src/rcore/inctx.rs @@ -1,8 +1,11 @@ use super::*; +/// [Inlining] context. pub trait InCtx<'a, Ctx: Context<'a>>: Inlining { + /// [Inlining] equivalent for [`Addresses::next`]. fn icnext_address(self, err: impl FnOnce(&[u8]) -> E) -> Result<(Address, Self), E>; + /// [Inlining] equivalent for [`Addresses::next_point`]. fn icnext_point<'b, A: Mentionable<'a, Ctx>, E>( self, factory: A::Fctr, @@ -15,6 +18,7 @@ pub trait InCtx<'a, Ctx: Context<'a>>: Inlining { )) } + /// Clone the reference to the current [Resolver]. fn iresolver(&self) -> Rc>; }