pub trait Block: Send + Sync + Clone + PartialEq + Debug + Encode + Decode {
    type Id: Send + Sync + Copy + Clone + PartialEq + AsRef<[u8]> + Debug + Encode + Decode;

    fn id(&self) -> Self::Id;
}
Expand description

Trait representing a Block.

Required Associated Types

Required Methods

Return the deterministic, unique ID for this block.

Implementors