/// Represents a reference to a type definition in a WebAssembly module. #[derive(Debug, Clone, Copy, Eq, PartialEq)] pubenum TypeRef { /// The type is a function. /// /// The value is an index into the type section.
Func(u32), /// The type is a table.
Table(TableType), /// The type is a memory.
Memory(MemoryType), /// The type is a global.
Global(GlobalType), /// The type is a tag. /// /// This variant is only used for the exception handling proposal. /// /// The value is an index in the types index space.
Tag(TagType),
}
/// Represents an import in a WebAssembly module. #[derive(Debug, Copy, Clone, Eq, PartialEq)] pubstruct Import<'a> { /// The module being imported from. pub module: &'a str, /// The name of the imported item. pub name: &'a str, /// The type of the imported item. pub ty: TypeRef,
}
/// A reader for the import section of a WebAssembly module. pubtype ImportSectionReader<'a> = SectionLimited<'a, Import<'a>>;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.