Enum fraction::Sign [] [src]

pub enum Sign {
    Plus,
    Minus,
}

Sign representation

Fraction keeps its sign represented by the enum, so that we can use unsigned ints as base data types.

Variants

Trait Implementations

impl Copy for Sign
[src]

impl Clone for Sign
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Sign
[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 Debug for Sign
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Sign
[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 !=.

impl Eq for Sign
[src]

impl Neg for Sign
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl Display for Sign
[src]

[src]

Formats the value using the given formatter. Read more