Re:First Impressions of the Rust Programming Language
by chrismorgan on Monday June 11, 2018 @08:04AM
(#17283546)
To make clearer what I meant by pattern bindings being available:
Whereas with a method, the contents of the variant are not bound:
In Rust, pattern matching is the only to get at the contents of an enum. Methods like is_some() are just this:
[ Parent
| on HN ]
There are no comments on this comment yet.