Function peek_enum_variants

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

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