pub trait NatDoublePred: Nat {
type Output: Nat;
}
Expand description
The DoublePred
operator subtracts two from a Nat
. It is defined for Nat
s greater
than one, and can be used as DoublePred<X>
or <X as NatDoublePred>::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.