Function peek_enum_variants

Source
pub fn peek_enum_variants(shape: &'static Shape) -> Option<&'static [Variant]>
Expand description

Returns the enum variants if the shape represents an enum, None otherwise