Trait GenericBlockBody

Source
pub trait GenericBlockBody<'a>
where Self: Copy + Debug,
{ type Owned: GenericOwnedBlockBody<Body<'a> = Self> where Self: 'a; // Required methods fn try_to_owned(self) -> Option<Self::Owned>; fn root(&self) -> Blake3Hash; }
Expand description

Generic block body

Required Associated Types§

Source

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

Owned block body

Required Methods§

Source

fn try_to_owned(self) -> Option<Self::Owned>

Turn into 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", so this trait is not object safe.

Implementors§