Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Rust
convert path to pathbuf
bner341
Programming language:
Rust
2021-02-01 01:18:54
0
Q:
convert path to pathbuf
Bryan Jones
Code:
Rust
2021-02-01 01:21:48
let path = Path::new("some_thing/hi.txt"); let mut path_buf = PathBuf::new(); path_buf.push(path);
0
Tags
path
New to Communities?
Join the community