pub trait IntNeg: Int {
type Output: Int;
}
Expand description
Integer negation. In balanced ternary, this is just taking every “minus” and “plus” and
switching them. Used as Neg<X>
or <X as IntNeg>::Output
.
Here, we also combine it with the functionality of the Unique
operator such that they
don’t need to be nested (for example in our implementation of subtraction.)
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.