Macro caffe2_imports::enhanced_enum
source · macro_rules! enhanced_enum { ($name:ident $(,)? {$($variants:ident$(,)?)*}) => { ... }; }
Expand description
Define a new Enhanced Enum.
Usage: enhanced_enum!( EnumName { List, Of, Variants } );
See the documentation on the generated types for the full documentation of enhanced enums and associated arrays.