common_macro::stack_trace_debug

Function build_next_impl

source
fn build_next_impl(enum_name: Ident, variants: Vec<ErrorVariant>) -> TokenStream
Expand description

Generate next fn.

The generated fn will be like:

fn next(&self) -> Option<&dyn ::common_error::ext::StackError>;