Struct arthroprod::types::Alpha [] [src]

pub struct Alpha { /* fields omitted */ }

The base element for computation with Absolute Relativity.

An Alpha is a Component along with an associated Sign. All values and mathematical operators within the algebra are required to be paired with their correct Alpha value under the principle of Absolute Relativity.

Methods

impl Alpha
[src]

[src]

create a new alpha from an string index containing an optional sign prefix.

NOTE: This will panic if the index is invalid in order to prevent the user from running inconsistant calculations.

[src]

new_override allows the caller to explicitly specify an index, sign and allowed set of alphas when creating an alpha.

[src]

Construct an Alpha explicitly from a Component and a Sign.

[src]

Check to see if an alpha is +/-αp

[src]

Return a copy of this Alpha's index

[src]

Return a copy of this Alpha's sign

[src]

Return a Vector of Indices representing this Alpha's Indices

Trait Implementations

impl Debug for Alpha
[src]

[src]

Formats the value using the given formatter.

impl Eq for Alpha
[src]

impl PartialEq for Alpha
[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 Ord for Alpha
[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 Alpha
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl Copy for Alpha
[src]

impl Clone for Alpha
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Alpha
[src]

[src]

Formats the value using the given formatter. Read more