VmExecutionExtension

Trait VmExecutionExtension 

Source
pub trait VmExecutionExtension<F> {
    type Executor: AnyEnum;

    // Required method
    fn extend_execution(
        &self,
        inventory: &mut ExecutorInventoryBuilder<'_, F, Self::Executor>,
    ) -> Result<(), ExecutorInventoryError>;
}
Expand description

Extension of VM execution. Allows registration of custom execution of new instructions by opcode.

Required Associated Types§

Source

type Executor: AnyEnum

Enum of executor variants

Required Methods§

Implementations on Foreign Types§

Source§

impl<F, EXT: VmExecutionExtension<F>> VmExecutionExtension<F> for Option<EXT>

Implementors§