peek_enum_variants

Function peek_enum_variants 

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

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