pub struct TwoElementAlgebra();

Trait Implementations

The additive identity element of the ring.

Checks if the given element is the additive identity of the ring.

The additive inverse of the given element.

The element is changed to its additive inverse.

The additive sum of the given elements

The second element is added to the first one.

Doubles the given element in place.

The difference of the given elements.

The second element is subtracted from the first one.

Returns an integer multiple of the given element.

Returns the complement (logical negation) of the given element.

Returns the largest element of the lattice.

Returns the smallest element of the lattice.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type of the elements of this domain.

Checks if the given objects represent the same element of the set.

Checks if the given object is a member of the domain.

Returns the multiplicative inverse of the given non-zero element. This method panics for the zero element. Read more

Returns the quotient of the two elements in the field. This method panics if the second element is zero. Read more

Returns an integer power of the given element.

Returns the largest element that is less than or equal to both given elements. Read more

Returns the smallest element that is greater than or equal to both given elements. Read more

The multiplicative identity element of the ring.

Checks if the given element is the multiplicative identity.

Calculates the multiplicative inverse of the given element if it exists.

Returns true if the given element has a multiplicative inverse.

Returns true if the first element is less than or equal to the second one in the partial order. Read more

Returns true if the first element is strictly less than the second one. Read more

Returns true if one of the elements is less than or equal to the other. Read more

The multiplicative product of the given elements.

The first element is multiplied with the second one in place.

Squares the given element in place.

Returns the integer multiple of the one element in the ring.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.