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

Methods

impl Trit
[src]

[src]

Returns true if self is True or Both

[src]

Returns true if self is False or Both

[src]

Tests if

[src]

[src]

Trait Implementations

impl PartialEq for Trit
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.