4 ms·
The fact that the pattern matches. Here the type being matched is: enum Option<T> { None, Some(T) } let x = Some(42); let Som
by bombela 4y ago
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") };