diff --git a/src/rstd/collections/pair.rs b/src/rstd/collections/pair.rs index 4504118..5be8330 100644 --- a/src/rstd/collections/pair.rs +++ b/src/rstd/collections/pair.rs @@ -139,3 +139,28 @@ impl AtomicBase for (A, B) { impl, B: ParseMode> ParseMode for (A, B) { type Mode = B::Mode; } + +type PFImpl<'a, Ctx, FA, FB> = StaticPairFactory< + 'a, + Ctx, + ( + >::Mtbl, + >::Mtbl, + ), +>; + +impl<'a, Ctx: Context<'a>, FA: InliningFactory<'a, Ctx>, FB: FactoryModeParse<'a, Ctx>> + FactoryModeParse<'a, Ctx> for (FA, FB) +{ + fn mdeserialize>(&self, inctx: I) -> ModeResultM<'a, Ctx, Self, I> { + PFImpl::<'a, Ctx, FA, FB>::mdeserialize_sp(self, inctx) + } + + fn mextend( + &self, + mentionable: ExtensionSourceM<'a, Ctx, Self>, + tail: &[u8], + ) -> ExtensionResultM<'a, Ctx, Self> { + PFImpl::<'a, Ctx, FA, FB>::mextend_sp(self, mentionable, tail) + } +}