Expand description
Prelude module for all defensive traits to be imported at once.
Traitsยง
- Defensive
- A trait to handle errors and options when you are really sure that a condition must hold, but
not brave enough to
expect
on it, or a default fallback value makes more sense. - Defensive
Option - Subset of methods similar to
Defensive
that can only work for aOption
. - Defensive
Result - Subset of methods similar to
Defensive
that can only work for aResult
.