Constructs a Fallable
from an Option
by mapping
Some(x)
to Success(x)
and None
to Failure
.
Constructs a Fallable
from an Option
by mapping
Some(x)
to Success(x)
and None
to Failure
.
If the result is Failure
, it contains a single error provided by e
.
Constructs a Fallable
from an Option
by mapping
Some(x)
to Success(x)
and None
to Failure
.
Constructs a Fallable
from an Option
by mapping
Some(x)
to Success(x)
and None
to Failure
.
If the result is Failure
, its list of errors is empty.