Skip to main content

GenericBlockBody

Trait GenericBlockBody 

Source
pub trait GenericBlockBody<'a>
where Self: Copy + Debug + Into<BlockBody<'a>> + Send + Sync,
{ type Owned: GenericOwnedBlockBody<Body<'a> = Self> where Self: 'a; const SHARD_KIND: RealShardKind; // Required methods fn to_owned(self) -> Self::Owned; fn root(&self) -> Blake3Hash; }
Expand description

Generic block body

Required Associated Constants§

Required Associated Types§

Source

type Owned: GenericOwnedBlockBody<Body<'a> = Self> where Self: 'a

Owned block body

Required Methods§

Source

fn to_owned(self) -> Self::Owned

Turn into an owned version

Source

fn root(&self) -> Blake3Hash

Compute block body root

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§