loosen StaticPair bounds

This commit is contained in:
AF 2023-07-29 08:16:58 +00:00
parent 54a6912baf
commit c0e7e54e34

View File

@ -38,9 +38,9 @@ pub trait StaticPair<'a, Ctx: Context<'a>>:
/// Second element's type. Must equal [`StaticPairSerializable::SB`]. /// Second element's type. Must equal [`StaticPairSerializable::SB`].
type B: MentionableBase<'a, Ctx, Fctr = Self::FB>; type B: MentionableBase<'a, Ctx, Fctr = Self::FB>;
/// First element's factory. /// First element's factory.
type FA: Factory<'a, Ctx, Mtbl = Self::A> + InlineableFactory<'a, Ctx>; type FA: FactoryBase<'a, Ctx, Mtbl = Self::A> + InlineableFactory<'a, Ctx>;
/// Second element's factory. /// Second element's factory.
type FB: Factory<'a, Ctx, Mtbl = Self::B>; type FB: FactoryBase<'a, Ctx, Mtbl = Self::B> + ParseMode;
/// See [`FactoryBase::ParseError`]. /// See [`FactoryBase::ParseError`].
type ParseError: 'a + Error; type ParseError: 'a + Error;