Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Nibbles of Rust – Restructuring Patterns. Parent comment
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.
Here the type being matched is: