pub trait Successor {
// Required method
fn next_value(self) -> Self;
}Expand description
Successor trait for numbers.
Required Methods§
Sourcefn next_value(self) -> Self
fn next_value(self) -> Self
Return self + 1. Panics if self is at maximum value.
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.