Function peek_enum

Source
pub fn peek_enum<'shape>(shape: &'shape Shape<'_>) -> Option<EnumType<'shape>>
Expand description

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