When not looking too closely, slice and str have a similar API surface (as I also expected, especially considering how str is called a string slice). Unfortunately, they behave quite differently in practice, even surprising some very experienced Rust users who I just talked to about splitting a slice by a subslice. Is there a way forward where APIs can be more unified? I am thinking efficiency concerns can probably be alleviated by specialization while generic implementations for slices can be provided. Unfortunately, the naming conflict already exists in stable Rust, so the names would be different, but at least the functionality gap could be closed here I think.
My main motivation is that I have to work with byte slices quite a lot (I work with C FFI mostly). These are explicitly allowed to be invalid utf8 in almost all cases, so unfortunately just "converting" (using from_utf8()) &[u8] to str does not work at all here.
So, the reason why I'm posting this: Is anyone working on closing that gap? Is there something that fills the gap at least for byte slices? The only thing I've found is this bug report https://github.com/rust-lang/rust/issues/27721 but it seems to be stalled for a while now.