pub fn strip_enum_prefix(prefix: &str, name: &str) -> StringExpand description
Strip an enum’s type name from the prefix of an enum value.
This function assumes that both have been formatted to Rust’s upper camel case naming conventions.
It also tries to handle cases where the stripped name would be invalid - for example, if it were to begin with a number.
If the stripped name is "Self", it will be replaced with "Self_"