loosen StaticPair
bounds
This commit is contained in:
parent
54a6912baf
commit
c0e7e54e34
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user