ConstSizeFactory
for pair
This commit is contained in:
parent
656237a4df
commit
a8c916973d
@ -184,6 +184,14 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a, Ctx: Context<'a>, FA, FB> ConstSizeFactory<'a, Ctx> for (FA, FB)
|
||||||
|
where
|
||||||
|
FA: ConstSizeFactory<'a, Ctx>,
|
||||||
|
FB: ConstSizeFactory<'a, Ctx> + FactoryModeParse<'a, Ctx>,
|
||||||
|
{
|
||||||
|
const SIZE: usize = FA::SIZE + FB::SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
impl<A: InliningAtomic, B: AtomicModeParse> AtomicModeParse for (A, B) {
|
impl<A: InliningAtomic, B: AtomicModeParse> AtomicModeParse for (A, B) {
|
||||||
fn ma_deserialize<I: Stream>(stream: I) -> AModeResultM<Self, I> {
|
fn ma_deserialize<I: Stream>(stream: I) -> AModeResultM<Self, I> {
|
||||||
StaticPairObject::<Self>::ma_deserialize_sp(stream)
|
StaticPairObject::<Self>::ma_deserialize_sp(stream)
|
||||||
|
Loading…
Reference in New Issue
Block a user