2 ms·
To restrict in the manner that the person above described would require some kind of const parameter in the type, no? The type would need to be parameterized o
by russed 7y ago
To restrict in the manner that the person above described would require some kind of const parameter in the type, no? The type would need to be parameterized over the `&str` to ensure that slices could only be taken from that particular string.
- steveklabnik 7y agoI believe that’s correct.