Enum tristate::TriState [] [src]

pub enum TriState {
    Yes,
    No,
    Unknown,
}

A three-valued type equivalent to Option<bool>.

Variants

The tri-state value signifying definitive truth.

The tri-state value signifying definitive falsity.

The tri-state value signifying an unknown truth value.

Methods

impl TriState
[src]

Is self equal to Yes?

Is self equal to No?

Is self equal to Unknown?

A mnemonic for yes().

A mnemonic for no().

Converts self to an Option<bool>. Equivalent to Option::<bool>::from(self).

Trait Implementations

impl Clone for TriState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TriState
[src]

impl Eq for TriState
[src]

impl PartialEq for TriState
[src]

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

This method tests for !=.

impl Ord for TriState
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for TriState
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl From<Option<bool>> for TriState
[src]

Performs the conversion.

impl From<bool> for TriState
[src]

Performs the conversion.