pub trait Succ {
// Required method
fn succ(self) -> Self;
}
Expand description
This trait gets the very next valid value of a type. Mainly for BigNum
, since adding
one often doesn’t result in a changing value. This is provided for contexts where you
need to increase the value easily
Required Methods§
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.