ChangesTrieBlockNumber

Trait ChangesTrieBlockNumber 

Source
pub trait ChangesTrieBlockNumber:
    Send
    + Sync
    + 'static
    + Display
    + Clone
    + From<u32>
    + TryInto<u32>
    + One
    + Zero
    + PartialEq
    + Ord
    + Hash
    + Add<Self, Output = Self>
    + Sub<Self, Output = Self>
    + Mul<Self, Output = Self>
    + Div<Self, Output = Self>
    + Rem<Self, Output = Self>
    + AddAssign<Self>
    + CheckedMul
    + CheckedSub
    + Decode
    + Encode { }
Expand description

Requirements for block number that can be used with changes tries.

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> BlockNumber for T
where T: Send + Sync + 'static + Display + Clone + From<u32> + TryInto<u32> + One + Zero + PartialEq + Ord + Hash + Add<Self, Output = Self> + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> + Rem<Self, Output = Self> + AddAssign<Self> + CheckedMul + CheckedSub + Decode + Encode,