#020 Sep 11, 2022option iterator20. let-else statementsAs of 1.65, it is possible to use let statement with a refutable pattern.1 2 3 4 5 6 7 let result: Result<i32, ()> = Ok(20); let Ok(value) = result else { panic!("Heeeelp!!!"); }; assert_eq!(value, 20); This post is licensed under CC BY 4.0 by the author.Share: ← Previous 19. breaking from labeled blocks Next → 21. Zip longest