Struct wasmtime_environ::wasmparser::Naming
source · pub struct Naming<'a> {
pub index: u32,
pub name: &'a str,
}
Expand description
Represents a name for an index from the names section.
Fields§
§index: u32
The index being named.
name: &'a str
The name for the index.
Trait Implementations§
source§impl<'a> FromReader<'a> for Naming<'a>
impl<'a> FromReader<'a> for Naming<'a>
source§fn from_reader(
reader: &mut BinaryReader<'a>
) -> Result<Naming<'a>, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a> ) -> Result<Naming<'a>, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.