referrerpolicy=no-referrer-when-downgrade

BlockNumber

Trait BlockNumber 

Source
pub trait BlockNumber:
    Member
    + MaybeSerializeDeserialize
    + MaybeFromStr
    + Debug
    + Hash
    + Copy
    + MaybeDisplay
    + AtLeast32BitUnsigned
    + Into<U256>
    + TryFrom<U256>
    + Default
    + TypeInfo
    + MaxEncodedLen
    + FullCodec
    + DecodeWithMemTracking
    + HasCompact
where Self::Type: DecodeWithMemTracking,
{ }
Expand description

Super trait with all the attributes 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> BlockNumber for T
where T: Member + MaybeSerializeDeserialize + MaybeFromStr + Debug + Hash + Copy + MaybeDisplay + AtLeast32BitUnsigned + Into<U256> + TryFrom<U256> + Default + TypeInfo + MaxEncodedLen + FullCodec + DecodeWithMemTracking + HasCompact, <T as HasCompact>::Type: DecodeWithMemTracking,