pub trait NatAdd<B: Nat>: Nat {
type Output: Nat;
}
Expand description
Nat
addition. Used as Add<X, Y>
or <X as NatAdd<Y>>::Output
.
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.