Returns Some(t) if the bool is true, or None otherwise.
Some(t)
bool
true
None
assert false.then_some(67u8) == None; assert true.then_some(67u8) == Some(67u8);