InCtx docs

This commit is contained in:
AF 2023-07-01 00:09:16 +00:00
parent 9d189d2e8e
commit e97af875cb

View File

@ -1,8 +1,11 @@
use super::*; use super::*;
/// [Inlining] context.
pub trait InCtx<'a, Ctx: Context<'a>>: Inlining { pub trait InCtx<'a, Ctx: Context<'a>>: Inlining {
/// [Inlining] equivalent for [`Addresses::next`].
fn icnext_address<E>(self, err: impl FnOnce(&[u8]) -> E) -> Result<(Address, Self), E>; fn icnext_address<E>(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>( fn icnext_point<'b, A: Mentionable<'a, Ctx>, E>(
self, self,
factory: A::Fctr, 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<dyn Resolver<'a, Ctx>>; fn iresolver(&self) -> Rc<dyn Resolver<'a, Ctx>>;
} }