referrerpolicy=no-referrer-when-downgrade

Module defensive_prelude

Source
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.
DefensiveOption
Subset of methods similar to Defensive that can only work for a Option.
DefensiveResult
Subset of methods similar to Defensive that can only work for a Result.