[][src]Macro enum_derive_2018::EnumDisplay

macro_rules! EnumDisplay {
    (() $vis:vis enum $name:ident { $($body:tt)* }) => { ... };
    (
        @expand $name:ident ()
    ) => { ... };
    (
        @expand $name:ident ($($var_names:ident),*)
    ) => { ... };
    (
        @arms ($name:ident, $self_:expr, $f:ident), ($a:ident) -> ($($body:tt)*)
    ) => { ... };
    (
        @arms ($name:ident, $self_:expr, $f:ident), ($a:ident $b:ident $($rest:tt)*) -> ($($body:tt)*)
    ) => { ... };
}

Derives Display for an unitary enum, which outputs the name of the variant.

Note that this is identical to the behaviour of a derived Debug implementation.