News for hackers. Stuff that matters.
Re:Nibbles of Rust – Restructuring Patterns by bombela on Sunday April 16, 2023 @02:52PM (#35593126)
The fact that the pattern matches.

Here the type being matched is:

    enum Option<T> {
        None,
        Some(T)
    }

    let x = Some(42);
    let Some(y) = x else { panic!("None") };

There are no comments on this comment yet.