Enum trit::Trit
[−]
[src]
pub enum Trit { True, False, Both, }
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
Used to denote a trinary value (True, False, or Both)
Variants
True
False
Both
Methods
impl Trit
[src]
fn is_true(self) -> bool
[src]
Returns true if self is True or Both
fn is_false(self) -> bool
[src]
Returns true if self is False or Both
fn only_true(self) -> bool
[src]
Tests if