pub fn parse_simple_enum( sum: &SumType, tag_name: &str, ) -> Result<AlgebraicValue, ErrorVm>
Try to parse tag_name for a simple enum on sum into a valid tag value of AlgebraicValue
tag_name
sum
tag
AlgebraicValue