CRegularFactory
docs
This commit is contained in:
parent
09c9ccc8bb
commit
8e2012ff9c
@ -365,10 +365,13 @@ impl Mode for RegularMode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// For auto-deriving [`RegularFactory`] from concrete implementations.
|
||||||
pub trait CRegularFactory<'a, Ctx: Context<'a>>:
|
pub trait CRegularFactory<'a, Ctx: Context<'a>>:
|
||||||
FactoryBase<'a, Ctx> + ImplMode<Mode = RegularMode>
|
FactoryBase<'a, Ctx> + ImplMode<Mode = RegularMode>
|
||||||
{
|
{
|
||||||
|
/// Concrete implementation of [`RegularFactory::rdeserialize`].
|
||||||
fn crdeserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Ctx, Self>;
|
fn crdeserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Ctx, Self>;
|
||||||
|
/// Concrete implementation of [`RegularFactory::rextend`].
|
||||||
fn crextend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Ctx, Self>;
|
fn crextend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Ctx, Self>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user