macro_rules! rename {
($path_1:expr,$path_2:expr) => { ... };
}Expand description
rename file
ⓘ
match rename!("./demo.txt","./test.txt"){
Ok(_r)=>{
println!("done");
},
Err(_e)=>{}
}macro_rules! rename {
($path_1:expr,$path_2:expr) => { ... };
} match rename!("./demo.txt","./test.txt"){
Ok(_r)=>{
println!("done");
},
Err(_e)=>{}
}