Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
russed
· 7y ago · 0 comments
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.
Comments
[–]
steveklabnik
7y ago
I believe that’s correct.