Module type_level_logic::strong::balanced
[−]
[src]
Type-level balanced ternary operations. For more information, see the documentation for the
Int
trait.
Reexports
pub use types::balanced::*; |
Traits
Int2P1 |
Project the first value in an |
Int2P2 |
Project the second value in an |
IntAbs |
Integer absolute value. Used as |
IntAbsMinThreeCmp |
Three-way integer absolute-value minimum comparison. Takes three integers, and returns a pair, the corresponding argument paired with the integer whose absolute value was smallest. |
IntAdd |
Integer addition. Used as |
IntCmp |
Integer comparison. Takes five integers - the first two are to be compared. If the result is that the first integer is greater than the second, the fifth integer is returned; if the result is that the two integers are equal, the fourth integer is returned; and if the result is that the first integer is less than the second, the third integer is returned. |
IntCmp2 |
Two-way integer comparison, but with the output trait bounds as an
|
IntDiv |
Integer division. Used as |
IntDivInternal | |
IntLteCmp | |
IntLteCmp2 | |
IntMul |
Integer multiplication. Used as |
IntNeg |
Integer negation. In balanced ternary, this is just taking every "minus" and "plus" and
switching them. Used as |
IntPred |
The |
IntRem |
Integer remainder. Used as |
IntRev |
Integer reversal. This is probably something you never want to do! However, it's useful in implementing division, in which we wish to access trits with the most-significant trits first. This reverses all the trits of the integer. |
IntRevInternal | |
IntSub |
Integer subtraction. Used as |
IntSucc |
The |
IntTriple |
The |
Unique |
The |
Type Definitions
Abs | |
AbsMinThreeCmp | |
Add | |
Cmp | |
Cmp2 | |
Div | |
DivInternal | |
Int2First | |
Int2Second | |
IntUnique | |
LteCmp | |
LteCmp2 | |
Mul | |
Neg | |
Pred | |
Rem | |
Rev | |
RevInternal | |
Sub | |
Succ | |
Triple |