Answers for "convert path to pathbuf"

0

convert path to pathbuf

let path = Path::new("some_thing/hi.txt");
let mut path_buf = PathBuf::new();
path_buf.push(path);
Posted by: Guest on October-19-2020

Code answers related to "convert path to pathbuf"

Browse Popular Code Answers by Language