pub trait SignedInt: Int + Neg<Output = Self> {
const NEG_ONE: Self;
}Expand description
Generic trait for the built-in Rust signed integer types.
Unlike traits provided by crates like num_traits, it is sealed.
See Int for design decisions around this trait.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".