Trait HasByteCode

Source
pub trait HasByteCode<'bc> {
    // Required method
    fn get_bytecode(&self) -> &'bc [u8] ;
}
Available on crate feature loader only.
Expand description

The module data which contains bytecode

This trait needed because the modules potentially can contain any kind of data like a typing (for TypeScript) or metadata.

Required Methods§

Source

fn get_bytecode(&self) -> &'bc [u8]

Implementations on Foreign Types§

Source§

impl<'bc> HasByteCode<'bc> for &'bc [u8]

Source§

fn get_bytecode(&self) -> &'bc [u8]

Implementors§