Enum arthroprod::types::Sign [] [src]

pub enum Sign {
    Pos,
    Neg,
}

A Sign can be positive or negative.

Ongoing work is being carried out to determine if this is expressive enough for the algebra or whether we need to individually track the sign of a component's magnitude, its handedness and its Alpha sign.

  • magSign

  • handSign

  • uSign

The current implementation is to track Sign as a property of an Alpha and to move sign changes within magnitude and handedness into this signle representation when they occur.

Variants

Methods

impl Sign
[src]

[src]

Combine two signs (positive, negative) and return their product under the standard rules of arithmetic.

Trait Implementations

impl Debug for Sign
[src]

[src]

Formats the value using the given formatter.

impl Eq for Sign
[src]

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 Ord for Sign
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Sign
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

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