From db41cd220f9f5673af8ddc7865c6a1bcdb19e4bf Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 17:31:07 +0000 Subject: [PATCH] `MentionableTop` docs --- src/rcore.rs | 3 ++- src/rstd/atomic.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rcore.rs b/src/rcore.rs index 609d06a..b49c688 100644 --- a/src/rcore.rs +++ b/src/rcore.rs @@ -51,7 +51,7 @@ pub use self::slice_deserializer::SliceDeserializer; /// Helper alias for [`WeakFunctor::F`] of [`FunctorContext::T`]. pub type Wrapped<'a, Ctx, A> = WrapC<'a, A, Ctx>; -/// Base for [`Mentionable`]. +/// [Mentionable] base. pub trait MentionableBase<'a, Ctx: Context<'a>>: 'a + Serializable + Sized { /// Type of the associated factory. type Fctr: FactoryBase<'a, Ctx, Mtbl = Self>; @@ -60,6 +60,7 @@ pub trait MentionableBase<'a, Ctx: Context<'a>>: 'a + Serializable + Sized { fn factory(&self) -> Self::Fctr; } +/// Topological [Mentionable]. Allows iterating over [Point]s it references, if any; pub trait MentionableTop<'a, Ctx: Context<'a>>: 'a { /// See implementation for the definition. /// Hash of all the references' points concatenated, ordered, non-unique. diff --git a/src/rstd/atomic.rs b/src/rstd/atomic.rs index 397b974..b4ae07c 100644 --- a/src/rstd/atomic.rs +++ b/src/rstd/atomic.rs @@ -24,7 +24,7 @@ pub type AParseError = ::AParseError; pub type AParseResult = Result>; -/// Base for [`Atomic`]. +/// [`Atomic`] base. pub trait AtomicBase: 'static + Send + Sync + Send + Clone + Serializable { /// Equivalent of [`FactoryBase::ParseError`]. type AParseError: Error;