46 ms·
There's no inherent connection; you could absolutely do this.
by steveklabnik 8y ago
There's no inherent connection; you could absolutely do this.
- russed 8y agoTo 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 8y agoI believe that’s correct.