Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork14.5k
Open
Description
Feature gate:#![feature("result_option_map_or_default")]
This is a tracking issue for addingResult::map_or_default() andOption::map_or_default(). Open RFCrust-lang/rfcs#3148
Public API
// core::resultimpl<T,E>Result<T,E>{pubfnmap_or_default<U,F>(self,f:F) ->UwhereU:Default,F:FnOnce(T) ->U{ ..}}
// core::optionimpl<T>Option<T>{pubfnmap_or_default<U,F>(self,f:F) ->UwhereU:Default,F:FnOnce(T) ->U{ ..}}
Steps / History
- Implementation:Add
Result::map_or_defaultandOption::map_or_default#141659 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.