macro_rules! PrevVariant {
(() $vis:vis enum $name:ident { $($body:tt)* }) => { ... };
}Expand description
Derives prev_variant(&self) for an unitary enum, which returns the previous variant, or None when called for the first.
macro_rules! PrevVariant {
(() $vis:vis enum $name:ident { $($body:tt)* }) => { ... };
}Derives prev_variant(&self) for an unitary enum, which returns the previous variant, or None when called for the first.