pub trait GenericBlockBody<'a>{
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§
Sourcetype Owned: GenericOwnedBlockBody<Body<'a> = Self>
where
Self: 'a
type Owned: GenericOwnedBlockBody<Body<'a> = Self> where Self: 'a
Owned block body
Required Methods§
Sourcefn try_to_owned(self) -> Option<Self::Owned>
fn try_to_owned(self) -> Option<Self::Owned>
Turn into owned version
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", so this trait is not object safe.