bignumbe_rs::traits

Trait Pred

Source
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§

Source

fn pred(self) -> Self

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§

Source§

impl<T> Pred for BigNumBase<T>
where T: Base,