Enum question::Answer [] [src]

pub enum Answer {
    RESPONSE(String),
    YES,
    NO,
}

An answer, the result of asking a Question.

Variants

A more complicated RESPONSE(String) that can be evaluated in the context of the application.

A "yes" answer.

Used to represent any answers that are acceptable as a "yes" when asking a yes/no question.

A "no" answer.

Used to represent any answers that are acceptable as a "no" when asking a yes/no question.

Trait Implementations

impl Eq for Answer
[src]

impl PartialEq for Answer
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for Answer
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Answer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Answer
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Answer

impl Sync for Answer