Because it isnāt a one-bit integral type. Itās a boolean logic value. Itās a completely different domain.
I mean, you could argue that every type in Rust is just [i1; N] for some N, so obviously we should be able to slice a String and get an f32. But that would defeat the point of having a strong type system in the first place.
1 is no more ātrueā than 4, or 17, or 9275 or -8, or "banana" or vec!["coconuts", "coconuts"] or even 0. Donāt forget that 0 is ātrueā in the UNIX shell.
āBut what about the existence of Into<Vec<u8>> for String?ā
⦠shut up, me.