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
Pos
Neg
Methods
impl Sign
[src]
fn combine_with(&self, j: &Sign) -> Sign
[src]
Combine two signs (positive, negative) and return their product under the standard rules of arithmetic.
Trait Implementations
impl Debug for Sign
[src]
impl Eq for Sign
[src]
impl PartialEq for Sign
[src]
fn eq(&self, __arg_0: &Sign) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Ord for Sign
[src]
fn cmp(&self, __arg_0: &Sign) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for Sign
[src]
fn partial_cmp(&self, __arg_0: &Sign) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more