Trait LoadOwnSstSection
pub trait LoadOwnSstSection<C> {
// Required method
fn load_own_sst_section<'bc>(
&mut self,
section: SstSectionView<'bc, C>,
) -> Result<(), Report>;
// Provided method
fn lower_instructions<I>(
&mut self,
instructions: impl IntoIterator<Item = I>,
) -> Result<Vec<<I as Lower<Self>>::Runtime>, Report>
where I: Lower<Self> { ... }
}Expand description
Allow a machine to load the SST data owned directly by its section.
When used with the [vihaco_runtime_derive::composite] macro, this hook runs before
generated child-section forwarding. Implement this for each composite to
make its own section behavior explicit, even when that behavior is a no-op.
Required Methods§
fn load_own_sst_section<'bc>( &mut self, section: SstSectionView<'bc, C>, ) -> Result<(), Report>
Provided Methods§
fn lower_instructions<I>(
&mut self,
instructions: impl IntoIterator<Item = I>,
) -> Result<Vec<<I as Lower<Self>>::Runtime>, Report>where
I: Lower<Self>,
fn lower_instructions<I>(
&mut self,
instructions: impl IntoIterator<Item = I>,
) -> Result<Vec<<I as Lower<Self>>::Runtime>, Report>where
I: Lower<Self>,
Lower a section’s parsed instructions after preparing loader capabilities.
Call this from load_own_sst_section before storing executable code.
For a generated composite syntax aggregate, the single Lower<Self>
bound requires every included instruction’s loader capabilities. An
error returns no partial instruction vector.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".