I am using the below code to open a file reference as per Tutorial
File::with_name(&format!("config/{}", env)
Where will I find the documentation of this with_name
function of the file. Despite googling I couldn't find it
At the top of the file you linked you can see that File
is not std::fs::File
, but imported from the config
crate. Here is its documentation: https://docs.rs/config/0.10.1/config/struct.File.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.