Skip to main content

LoadBytecodeSection

Trait LoadBytecodeSection 

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

Allow a machine to load a bytecode section completely.

For composites generated by [vihaco_runtime_derive::composite], this loads the composite’s own section through LoadOwnBytecodeSection and then forwards direct child sections to #[loadable] devices.

Required Methods§

fn load_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§