improve modules doc generation by support macros (#1975)

This commit is contained in:
thiolliere
2019-03-14 16:35:52 +01:00
committed by GitHub
parent e89d6e66fc
commit b92b2cc29b
2 changed files with 37 additions and 36 deletions
+4
View File
@@ -227,6 +227,10 @@ macro_rules! __decl_generic_event {
{ $( $events:tt )* };
{ ,$( $generic_param:ident = $generic_type:ty ),* };
) => {
/// [`RawEvent`] specialized for the configuration [`Trait`]
///
/// [`RawEvent`]: enum.RawEvent.html
/// [`Trait`]: trait.Trait.html
pub type Event<$event_generic_param> = RawEvent<$( $generic_type ),*>;
// Workaround for https://github.com/rust-lang/rust/issues/26925 . Remove when sorted.
#[derive(Clone, PartialEq, Eq, $crate::codec::Encode, $crate::codec::Decode)]