You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice to generate documentation for impl block and for static methods which are generated by Constructor, IsVariant and Unwrap derive macros.
For example, something like this:
#[derive(IsVariant)]enumMaybe<T>{Just(T),Nothing}
Generates this:
/// Check if [`Maybe`] is a value of some variant.impl<T>Maybe<T>{/// Returns `true` if [`Maybe`] is a [`Just`](Maybe::Just) value.pubfnis_just(&self) -> bool{matchself{Self::Just(..) => true, _ => false}}/// Returns `true` if [`Maybe`] is a [`Nothing`](Maybe::Nothing) value.pubfnis_nothing(&self) -> bool{matchself{Self::Nothing => true, _ => false}}}
This will be helpful for crates which use documentation lints, such as #![warn(missing_docs)].
The text was updated successfully, but these errors were encountered:
I think it would be nice to generate documentation for impl block and for static methods which are generated by
Constructor
,IsVariant
andUnwrap
derive macros.For example, something like this:
Generates this:
This will be helpful for crates which use documentation lints, such as
#![warn(missing_docs)]
.The text was updated successfully, but these errors were encountered: