peek_enum

Function peek_enum 

Source
pub fn peek_enum(shape: &'static Shape) -> Option<EnumType>
Available on crate feature reflect only.
Expand description

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