Process a success or pass through a failure
and_then.Rd
Calls fn()
on the wrapped value of x
if x
is a Success
, or Some
,
otherwise returns x
if it is a Failure
or Nothing
.
This function can be used for control flow based on Result values.