The method lines() returns an iterator over the lines of a file. File::open expects a generic, AsRef<Path> . That's what read_lines() expects as input.
確定! 回上一頁