Enum dice::Binary [] [src]

pub enum Binary {
    Add,
    Divide,
    Multiply,
    Subtract,
}

An operation used to combine the results of two dice rolling expressions.

Variants

Add the results.

Divide the results.

Multiply the results.

Subtract the results.

Methods

impl Binary
[src]

Combines the supplied results using this binary operation.

This method returns None if the binary operation fails (e.g., integer overflow).

Trait Implementations

impl Copy for Binary
[src]

impl Clone for Binary
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Binary
[src]

Formats the value using the given formatter.

impl PartialEq for Binary
[src]

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

This method tests for !=.

impl Eq for Binary
[src]