Feature gate: #![feature(bool_to_option)]
This is a tracking issue for bool::then_some, a value-receiver version of bool::then, split off from #64260.
Public API
impl bool {
pub fn then_some<T>(self, t: T) -> Option<T>;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(bool_to_option)]This is a tracking issue for
bool::then_some, a value-receiver version ofbool::then, split off from #64260.Public API
Steps / History
booltoOption<T>#64255bool::then_some#96628Unresolved Questions
bool::then. There was discussion in about this Tracking issue forbool::then_some#64260