From 28478ce7db0bb945571a0c736daf0daf0865c10d Mon Sep 17 00:00:00 2001 From: timofey Date: Sat, 1 Jul 2023 00:55:48 +0000 Subject: [PATCH] `Mtbl` docs --- src/rcore.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rcore.rs b/src/rcore.rs index 702e09d..9efa3f3 100644 --- a/src/rcore.rs +++ b/src/rcore.rs @@ -66,7 +66,7 @@ pub type Fctr<'a, Ctx, A> = >::Fctr; /// Shorthand for the type of vaalues returned by [`Factory::deserialize`]. pub type ParseResult<'a, Ctx, F> = Result, >::ParseError>; -/// [`ParseResult`] associated with a [Mentionable] (instead of a [Factory]). +/// [`ParseResult`] associated with a [`Mentionable`] (instead of a [`Factory`]). pub type ParseResultA<'a, Ctx, A> = Result>; /// Trait representing deserialisation rules for [Mentionable]s. @@ -83,6 +83,7 @@ pub trait Factory<'a, Ctx: Context<'a>>: 'a + Send + Sync + Clone { fn extend(&self, mentionable: Self::Mtbl, tail: &[u8]) -> ParseResult<'a, Ctx, Self>; } +/// [`Mentionable`] associated with the [`Factory`]. Mostly useful for `type` definitions. pub type Mtbl<'a, Ctx, F> = >::Mtbl; pub type ParseError<'a, Ctx, F> = >::ParseError;