我想将 &[u8] 传递给采用 u8 迭代器的函数: fn f(words: &[u8]) { g(words.iter()) } fn g(words: impl Iterator<Item = u8>) { // } Playground 上面的方法不起作用。
確定! 回上一頁