bignumbe_rs::traits

Trait Succ

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

Source

fn succ(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> Succ for BigNumBase<T>
where T: Base,