Skip to main content

LoadOwnBytecodeSection

Trait LoadOwnBytecodeSection 

pub trait LoadOwnBytecodeSection<C> {
    // Required method
    fn load_own_bytecode_section<'bc>(
        &mut self,
        section: BytecodeSectionView<'bc, C>,
    ) -> Result<(), Report>;
}
Expand description

Allow a machine to load the bytecode 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_bytecode_section<'bc>( &mut self, section: BytecodeSectionView<'bc, C>, ) -> Result<(), Report>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§