pub trait Pred {
// Required method
fn pred(self) -> Self;
}
Expand description
This trait gets the previous valid value of a type. Mainly for BigNum
, since subbing
one often doesn’t result in a changing value. This is provided for contexts where you
need to decrease 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.