Skip to main content

Crate predisposition

Crate predisposition 

Source
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:

Structs§

ParseError
Error returned when parsing or converting a predisposition bool fails.

Enums§

OptimisticBool
A bool that assumes true when uncertain.
PessimisticBool
A bool that assumes false when uncertain.
UncertainBool
A bool that makes no assumption — None means unknown.