TriState
A three-valued type equivalent to Option<bool>
:
A nice way to use this type is with a domain-specific type alias. For example, a spam classifier:
type Spam = TriState;
// ...
match message.classify
A three-valued type equivalent to Option<bool>
:
A nice way to use this type is with a domain-specific type alias. For example, a spam classifier:
type Spam = TriState;
// ...
match message.classify