finality_grandpa

Trait BlockNumberOps

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

Source§

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