let else
Binding a pattern, or leaving the function if it doesn't match.
let PATTERN = expr else { ... }; binds on a match and otherwise runs a diverging else block.
Examples
let Ok(n) = text.parse::<u32>() else { return None; };bindsnon success and leaves the function otherwise.
See also