referrerpolicy=no-referrer-when-downgrade
sp_runtime::traits

Trait BlockNumber

Source
pub trait BlockNumber:
    Member
    + MaybeSerializeDeserialize
    + MaybeFromStr
    + Debug
    + Hash
    + Copy
    + MaybeDisplay
    + AtLeast32BitUnsigned
    + Into<U256>
    + TryFrom<U256>
    + Default
    + TypeInfo
    + MaxEncodedLen
    + FullCodec
    + DecodeWithMemTracking
    + HasCompact<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: Member + MaybeSerializeDeserialize + MaybeFromStr + Debug + Hash + Copy + MaybeDisplay + AtLeast32BitUnsigned + Into<U256> + TryFrom<U256> + Default + TypeInfo + MaxEncodedLen + FullCodec + DecodeWithMemTracking + HasCompact<Type: DecodeWithMemTracking>> BlockNumber for T