Skip to main content

derive_variadic

Macro derive_variadic 

Source
macro_rules! derive_variadic {
    ($($name:ident ( $variant:ident )),* $(,)?) => { ... };
}
Expand description

Generates the VariadicFunc enum, its impl block, Display impl, and From<InnerType> impls for each variant.

All variants must use explicit Name(Type) syntax. When the variant name equals the inner type name, write e.g. And(And).