loosen RegularAtomic
factory
This commit is contained in:
parent
699fa9a537
commit
a170dd9f30
@ -79,15 +79,13 @@ impl<A: ParseMode> ImplMode for AtomicFactory<A> {
|
|||||||
type Mode = A::Mode;
|
type Mode = A::Mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, Ctx: Context<'a>, A: RegularAtomic + ImplMode> RegularFactory<'a, Ctx>
|
impl<'a, Ctx: Context<'a>, A: RegularAtomic> RegularFactory<'a, Ctx> for AtomicFactory<A> {
|
||||||
for AtomicFactory<A>
|
|
||||||
{
|
|
||||||
fn rdeserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Ctx, Self> {
|
fn rdeserialize(&self, inctx: impl InCtx<'a, Ctx>) -> ParseResult<'a, Ctx, Self> {
|
||||||
Ok(A::a_deserialize(inctx)?.into())
|
Ok(A::ra_deserialize(inctx)?.into())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn rextend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Ctx, Self> {
|
fn rextend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Ctx, Self> {
|
||||||
Ok(A::a_extend(mentionable.atomic, tail)?.into())
|
Ok(A::ra_extend(mentionable.atomic, tail)?.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user