What does Some() do on the left hand side of a variable assignment?
问题 I was reading some Rust code and I came across this line if let Some(path) = env::args().nth(1) { Inside of this function fn main() { if let Some(path) = env::args().nth(1) { // Try reading the file provided by the path. let mut file = File::open(path).expect("Failed reading file."); let mut content = String::new(); file.read_to_string(&mut content); perform_conversion(content.as_str()).expect("Conversion failed."); } else { println!( "provide a path to a .cue file to be converted into a