The Rust Programming Language Forum
Generics help: how to accept anything that can become a PathBuf
help
steveklabnik
August 19, 2016, 6:49pm
5
This is a fairly common refrain; it's tough because there's a lot of them.
show post in topic
Related topics
Topic
Replies
Views
Activity
Into<PathBuf> - associated type `Output` not found
help
2
489
November 19, 2020
Generic over all types that can be converted to another?
help
4
549
February 23, 2021
Need to convert a &str into a Cow<'a, Path>, but no blanket impl for T: AsRef<Path> exists. Alternatives?
help
2
351
August 23, 2019
Storing a PathBuf field, from a impl AsRef<Path> function parameter
help
1
64
June 19, 2025
Can't return a vector of Path from a function
help
10
928
May 10, 2023