I need to create a map with amino acids as keys and values that represent their mass (f32). Amino acids, the building blocks of proteins, are represented by a single capital letter–there are just 20 of them. I created the working solution below that uses string keys, but is there something similar that allows use of a single u8 value as the key?

const massMap = std.StaticStringMap(f32).initComptime([_]struct { []const u8, f32 }{
    .{ "A", 71.07855 },  .{ "C", 103.14464 }, .{ "D", 115.08826 }, .{ "E", 129.11504 },
    .{ "F", 147.17571 }, .{ "G", 57.05177 },  .{ "H", 137.14062 }, .{ "I", 113.15890 },
    .{ "K", 128.17358 }, .{ "L", 113.15890 }, .{ "M", 131.19820 }, .{ "N", 114.10354 },
    .{ "P", 97.11623 },  .{ "Q", 128.13032 }, .{ "R", 156.18707 }, .{ "S", 87.07796 },
    .{ "T", 101.10474 }, .{ "V", 99.13211 },  .{ "W", 186.21220 }, .{ "Y", 163.17512 },
});