rearrange Factory base traits

This commit is contained in:
AF 2023-05-05 20:14:09 +00:00
parent 8bf83d993b
commit c29225ccfd

View File

@ -86,7 +86,7 @@ pub type ParseResult<'a, Ctx, F> =
/// Trait representing deserialisation rules for [Mentionable]s. /// Trait representing deserialisation rules for [Mentionable]s.
/// Crucial for [`TypelessMentionable`] and therefore [`Mentionable::points`]. /// Crucial for [`TypelessMentionable`] and therefore [`Mentionable::points`].
pub trait Factory<'a, Ctx: 'a + Context>: Clone + 'a { pub trait Factory<'a, Ctx: 'a + Context>: 'a + Clone {
/// Type of the associated objects. /// Type of the associated objects.
type Mtbl: Mentionable<'a, Ctx, Fctr = Self>; type Mtbl: Mentionable<'a, Ctx, Fctr = Self>;
/// Type of an error that [`Factory::deserialize`] can fail with. /// Type of an error that [`Factory::deserialize`] can fail with.