Macro enum_derive_2018::NextVariant
source · [−]macro_rules! NextVariant {
(() $vis:vis enum $name:ident { $($body:tt)* }) => { ... };
}
Expand description
Derives next_variant(&self)
for an unitary enum,
which returns the next variant, or None
when called for the last.