referrerpolicy=no-referrer-when-downgrade
sc_consensus_grandpa

Trait BlockNumberOps

pub trait BlockNumberOps:
    Debug
    + Ord
    + Add<Output = Self>
    + Sub<Output = Self>
    + One
    + Zero
    + AsPrimitive<usize> { }
Expand description

Arithmetic necessary for a block number.

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§

§

impl<T> BlockNumberOps for T
where T: Ord + Add<Output = T> + Sub<Output = T> + Debug + One + Zero + AsPrimitive<usize>,