I just tried to use the windows method on slices on a
&str. I was surprised to see that it is not implemented for
I think my problem is that I learned to call
&str a string slice. Is
&str really a slice? Did I perhaps learn that wrong at some point?
How could I transform a
&str into an actual slice that would allow me to iterate using windows?