Module frame_support::traits::defensive_prelude
source · Expand description
Prelude module for all defensive traits to be imported at once.
Traits
- 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. - Subset of methods similar to
Defensive
that can only work for aOption
. - Subset of methods similar to
Defensive
that can only work for aResult
.