Skip to main content

Block

Trait Block 

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

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

Trait representing a Block.

Required Associated Types§

Required Methods§

Source

fn id(&self) -> Self::Id

Return the deterministic, unique ID for this block.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§