DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUST
convert path to pathbuf
let
path
=
Path
::
new
(
"some_thing/hi.txt"
)
;
let
mut
path_buf
=
PathBuf
::
new
(
)
;
path_buf
.
push
(
path
)
;
PREVIOUS
NEXT
Tagged:
#convert
#path
#pathbuf
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit