Crate trit

Source
Expand description

§The trit crate

A crate that provides a trinary type

§Usage

// Creates a type that is both true and false
let both = Trit::Both;
// both.is_true() == true
// both.is_false() == true
// both.only_true() == false
// both.only_false() == false

Enums§

Trit
Used to denote a trinary value (True, False, or Both)