pub trait SemanticEnumEx<'a>: Upcast<dyn SemanticGroup + 'a> {
// Provided methods
fn concrete_enum_variant(
&self,
concrete_enum_id: ConcreteEnumId,
variant: &Variant,
) -> Maybe<ConcreteVariant> { ... }
fn concrete_enum_variants(
&self,
concrete_enum_id: ConcreteEnumId,
) -> Maybe<Vec<ConcreteVariant>> { ... }
}
Provided Methods§
sourcefn concrete_enum_variant(
&self,
concrete_enum_id: ConcreteEnumId,
variant: &Variant,
) -> Maybe<ConcreteVariant>
fn concrete_enum_variant( &self, concrete_enum_id: ConcreteEnumId, variant: &Variant, ) -> Maybe<ConcreteVariant>
Retrieves the ConcreteVariant for a ConcreteEnumId and a Variant.
sourcefn concrete_enum_variants(
&self,
concrete_enum_id: ConcreteEnumId,
) -> Maybe<Vec<ConcreteVariant>>
fn concrete_enum_variants( &self, concrete_enum_id: ConcreteEnumId, ) -> Maybe<Vec<ConcreteVariant>>
Retrieves all the ConcreteVariants for a ConcreteEnumId.