displaydoc 0.2.6

A derive macro for implementing the display Trait via a doc comment and string interpolation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use displaydoc::Display;

/// this type is pretty swell
#[derive(Display)]
#[prefix_enum_doc_attributes]
enum TestType {
    /// this variant is too
    Variant1,

    /// this variant is two
    Variant2,
}

static_assertions::assert_impl_all!(TestType: core::fmt::Display);

fn main() {}