Trait golem_wasm_ast::core::RetainsCustomSection

source ·
pub trait RetainsCustomSection {
    // Required methods
    fn name(&self) -> &str;
    fn data(&self) -> &[u8] ;
}
Expand description

Trait to be implemented by custom Custom node types in order to provide information for the metadata feature Module::get_metadata.

Required Methods§

source

fn name(&self) -> &str

source

fn data(&self) -> &[u8]

Implementors§