diff --git a/src/rcore.rs b/src/rcore.rs index f9fa830..eb02440 100644 --- a/src/rcore.rs +++ b/src/rcore.rs @@ -87,7 +87,7 @@ where /// [`Factory`] associated with the [`Mentionable`]. Mostly useful for `type` definitions. pub type Fctr<'a, Ctx, A> = >::Fctr; -/// Shorthand for the type of values returned by [`ParseFactory::deserialize`]. +/// Shorthand for the type of values returned by [`FactoryParse::deserialize`]. pub type ParseResult<'a, Ctx, F> = Result, ParseError<'a, Ctx, F>>; /// [`ParseResult`] associated with a [`Mentionable`] (instead of a [`Factory`]). @@ -97,7 +97,7 @@ pub type ParseResultA<'a, Ctx, A> = Result>; pub trait FactoryBase<'a, Ctx: Context<'a>>: 'a + Send + Sync + Clone { /// Type of the associated objects. type Mtbl: MentionableBase<'a, Ctx, Fctr = Self>; - /// Type of an error that [`ParseFactory::deserialize`] can fail with. + /// Type of an error that [`FactoryParse::deserialize`] can fail with. type ParseError: 'a + Error; } diff --git a/src/rcore/resolution.rs b/src/rcore/resolution.rs index 5a2378d..78ac634 100644 --- a/src/rcore/resolution.rs +++ b/src/rcore/resolution.rs @@ -5,7 +5,7 @@ use super::*; pub enum ResolutionError { /// Usually comes from [`Resolver::resolve`]. Lookup(L), - /// Usually comes from [`ParseFactory::deserialize`]. + /// Usually comes from [`FactoryParse::deserialize`]. Parse(P), } diff --git a/src/rcore/serialization.rs b/src/rcore/serialization.rs index 2b127df..f451079 100644 --- a/src/rcore/serialization.rs +++ b/src/rcore/serialization.rs @@ -30,7 +30,7 @@ impl Serializer for Vec { /// Trait representing a readable stream used for parsing. /// -/// See [`Serializer`], [`ParseFactory::deserialize`]. +/// See [`Serializer`], [`FactoryParse::deserialize`]. pub trait Deserializer { /// Read at most `n` bytes. fn read_n(&mut self, n: usize) -> &[u8]; diff --git a/src/rstd/atomic.rs b/src/rstd/atomic.rs index fbdffab..e06d58e 100644 --- a/src/rstd/atomic.rs +++ b/src/rstd/atomic.rs @@ -29,9 +29,9 @@ pub trait AtomicBase: 'static + Send + Sync + Send + Clone + Serializable { } pub trait Atomic: AtomicBase + ParseMode { - /// Static equivalent of [`ParseFactory::deserialize`]. + /// Static equivalent of [`FactoryParse::deserialize`]. fn a_deserialize(inlining: impl Inlining) -> AParseResult; - /// Static equivalent of [`ParseFactory::extend`]. + /// Static equivalent of [`FactoryParse::extend`]. fn a_extend(self, tail: &[u8]) -> AParseResult; } diff --git a/src/rstd/nullable.rs b/src/rstd/nullable.rs index 7b2b253..0618d1d 100644 --- a/src/rstd/nullable.rs +++ b/src/rstd/nullable.rs @@ -107,7 +107,9 @@ impl<'a, Ctx: Context<'a>, A: MentionableBase<'a, Ctx>> Clone for Nullable<'a, C } } -impl<'a, Ctx: Context<'a>, F: Factory<'a, Ctx>> InlineableFactory<'a, Ctx> for NullableFactory { +impl<'a, Ctx: Context<'a>, F: FactoryBase<'a, Ctx>> InlineableFactory<'a, Ctx> + for NullableFactory +{ fn extension_error(&self, tail: &[u8]) -> Self::ParseError { PointParseError::WrongLength(HASH_SIZE + tail.len()) }