Permalink
Please
sign in to comment.
Browse files
core: impl<T> From<T> for Option<T>
Improves ergonomics for functions that have optional parameters: instead of taking `Option<T>`, they can take a type bounded by `Into<Option<T>>`.
- Loading branch information...
Showing
with
33 additions
and 0 deletions.
- +8 −0 src/libcore/option.rs
- +25 −0 src/libcoretest/option.rs
0 comments on commit
d923734