Expand description
Three-valued boolean types with different predispositions for the unknown case.
This crate provides three enum types that extend bool with a third variant
representing an unknown or unspecified value. Each type differs in how it
resolves that third variant:
OptimisticBoolassumestruewhen uncertain.PessimisticBoolassumesfalsewhen uncertain.UncertainBoolmakes no assumption; behaves exactly likeOption<bool>.
Structs§
- Parse
Error - Error returned when parsing or converting a predisposition bool fails.
Enums§
- Optimistic
Bool - A bool that assumes
truewhen uncertain. - Pessimistic
Bool - A bool that assumes
falsewhen uncertain. - Uncertain
Bool - A bool that makes no assumption —
Nonemeans unknown.