You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither the nightly Rust reference nor the book seem to mention the fact that one can use enum constructors in a function like way inside expressions, eg. my_iterator.map(Option::Some).
(unless I'm mistaken and it's there somewhere, but I didn't find it)
The text was updated successfully, but these errors were encountered:
steveklabnik
changed the title
Rustdoc: mention the possibility of using enum constructors as functions in expressions
mention the possibility of using enum constructors as functions in expressions
May 29, 2015
Neither the nightly Rust reference nor the book seem to mention the fact that one can use enum constructors in a function like way inside expressions, eg.
my_iterator.map(Option::Some)
.(unless I'm mistaken and it's there somewhere, but I didn't find it)
The text was updated successfully, but these errors were encountered: