pub trait GenericBlockBody<'a>{
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§
Sourceconst SHARD_KIND: RealShardKind
const SHARD_KIND: RealShardKind
Shard kind
Required Associated Types§
Sourcetype Owned: GenericOwnedBlockBody<Body<'a> = Self>
where
Self: 'a
type Owned: GenericOwnedBlockBody<Body<'a> = Self> where Self: 'a
Owned block body
Required Methods§
Sourcefn root(&self) -> Blake3Hash
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".