Skip to main content

registered_variant

Function registered_variant 

Source
pub fn registered_variant<'a>(
    registry: &'a EnumVariantRegistry,
    path: &TypePath,
) -> Option<&'a EnumVariantInfo>
Expand description

Look up the last segment of a TypePath (the variant name) in the registry. Returns None when the path is empty or the name is not a known variant.