1 2 3 4 5 6 7 8 9 10 11 12 13
use enum_path::EnumPath; // Without a custom delimiter, "foo" and "foob" do NOT collide. // With case-insensitive matching, "Foo" and "FOO" *do* collide. #[derive(EnumPath)] #[enum_path(FromStr, case_insensitive)] enum Bad { Foo, FOO, } fn main() {}