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
use displaydoc::Display;

/// this type is pretty swell
#[derive(Display)]
struct FakeType;

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

/// this type is pretty swell2
#[derive(Display)]
struct FakeType2;

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

fn main() {}