Trait NatDoublePred

Source
pub trait NatDoublePred: Nat {
    type Output: Nat;
}
Expand description

The DoublePred operator subtracts two from a Nat. It is defined for Nats 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.

Implementors§