pub trait NatSub<B: Nat>: Nat {
type Output: Nat;
}
Expand description
Nat
subtraction. Used as Sub<X, Y>
or <X as NatSub<Y>>::Output
. Undefined for any
inputs which would result in an output less than zero. If you need signed numbers, you
should probably be using a signed representation, such as balanced ternary.
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.