diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index 716f7e0..48ca48a 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -195,13 +195,21 @@ pub trait ParseModeExt: ParseMode { impl ParseModeExt for F {} -/// For auto-implementing [`FactoryParse`]. +/// For auto-implementing [`FactoryParse`] and [`Atomic`]. +/// +/// [`Atomic`]: crate::rstd::atomic::Atomic pub trait ImplMode { /// Same as [`ParseMode::Mode`] type Mode: ?Sized + Mode; } +/// Used with [`WithMode`] for linking [`ImplMode`] to [`FactoryParse`] and [`Atomic`]. +/// +/// [`Atomic`]: crate::rstd::atomic::Atomic pub trait WithParseMode: ImplMode { + /// [`WithMode`] implementing [`FactoryModeProxy`] or [`AtomicModeProxy`]. + /// + /// [`AtomicModeProxy`]: crate::rstd::atomic::AtomicModeProxy type WithMode: ?Sized; }