pub trait IntentTreeStructure {
type RootIntentStructure: IntentStructure;
type SubintentStructure: IntentStructure + HasSubintentHash;
// Required methods
fn root(&self) -> &Self::RootIntentStructure;
fn non_root_subintents<'a>(
&'a self,
) -> impl ExactSizeIterator<Item = &'a Self::SubintentStructure>;
}
Required Associated Types§
type RootIntentStructure: IntentStructure
type SubintentStructure: IntentStructure + HasSubintentHash
Required Methods§
fn root(&self) -> &Self::RootIntentStructure
fn non_root_subintents<'a>( &'a self, ) -> impl ExactSizeIterator<Item = &'a Self::SubintentStructure>
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.