Skip to content

std::path::Path size problem #2357

Closed Answered by fzyzcjy
jbbjarnason asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you!

&Path is like &str (roughly speaking, "borrowed"). Thus one way is to have PathBuf (which is like String - owned). Another way is to convert everything from/to String.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jbbjarnason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants