Skip to main content

ToBytecode

Trait ToBytecode 

Source
pub trait ToBytecode<'a, E> {
    // Required method
    fn to_bytecode(&self) -> Result<Bytecode, E>;
}
Expand description

ToBytecode

Converts a stateful object to bytecode

Required Methods§

Source

fn to_bytecode(&self) -> Result<Bytecode, E>

Translates self to a bytecode string

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§