[][src]Macro enum_derive_2018::NextVariant

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

Derives next_variant(&self) for an unitary enum, which returns the next variant, or None when called for the last.