Hi! I'm trying to implement a struct that will contain an iterator of some String array slice. Therefore, I've implemented From<&[String]>
for it. But when I supply &["smth".to_string()]
to some function that accepts T: Into<IterWrapper>
, I'm getting errors saying
the trait `From<&[String; 1]>` is not implemented for `IterWrapper<'_>`
I've tried implementing From<&[String; _]>
instead, but it's illegal syntax. Same with From<&[String; usize]>
.
I'm obviously missing something, but I couldn't find anything. Playground link. Thanks in advance!