You could make your own read function more generic by introducing a type parameter. use std::path::Path; fn read<P: AsRef<Path>>(file: ...
確定! 回上一頁