BlockId

Trait BlockId 

Source
pub trait BlockId:
    Eq
    + Ord
    + Clone
    + Debug
    + Hash
    + Serialize
    + Deserialize {
    // Required method
    fn zero() -> Self;
}
Expand description

Trait identifying the block identifier type.

Required Methods§

Source

fn zero() -> Self

A special ID used to denote a non-existent block (e.g. the parent of the first block).

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§