Trait cranelift_wasm::wasmparser::FromReader

source ·
pub trait FromReader<'a>: Sized {
    // Required method
    fn from_reader(
        reader: &mut BinaryReader<'a>
    ) -> Result<Self, BinaryReaderError>;
}
Expand description

A trait implemented for items that can be decoded directly from a BinaryReader, or that which can be parsed from the WebAssembly binary format.

Note that this is also accessible as a BinaryReader::read method.

Required Methods§

source

fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self, BinaryReaderError>

Attempts to read Self from the provided binary reader, returning an error if it is unable to do so.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> FromReader<'a> for &'a str

source§

impl<'a> FromReader<'a> for Option<ComponentValType>

source§

impl<'a> FromReader<'a> for u32

source§

impl<'a, T, U> FromReader<'a> for (T, U)
where T: FromReader<'a>, U: FromReader<'a>,

Implementors§

source§

impl<'a> FromReader<'a> for CanonicalFunction

source§

impl<'a> FromReader<'a> for CanonicalOption

source§

impl<'a> FromReader<'a> for Catch

source§

impl<'a> FromReader<'a> for ComdatSymbolKind

source§

impl<'a> FromReader<'a> for ComponentAlias<'a>

source§

impl<'a> FromReader<'a> for ComponentExternalKind

source§

impl<'a> FromReader<'a> for ComponentFuncResult<'a>

source§

impl<'a> FromReader<'a> for ComponentInstance<'a>

source§

impl<'a> FromReader<'a> for ComponentType<'a>

source§

impl<'a> FromReader<'a> for ComponentTypeDeclaration<'a>

source§

impl<'a> FromReader<'a> for ComponentTypeRef

source§

impl<'a> FromReader<'a> for ComponentValType

source§

impl<'a> FromReader<'a> for CompositeType

source§

impl<'a> FromReader<'a> for CoreDumpValue

source§

impl<'a> FromReader<'a> for CoreType<'a>

source§

impl<'a> FromReader<'a> for ExternalKind

source§

impl<'a> FromReader<'a> for HeapType

source§

impl<'a> FromReader<'a> for Instance<'a>

source§

impl<'a> FromReader<'a> for InstanceTypeDeclaration<'a>

source§

impl<'a> FromReader<'a> for InstantiationArgKind

source§

impl<'a> FromReader<'a> for ModuleTypeDeclaration<'a>

source§

impl<'a> FromReader<'a> for StorageType

source§

impl<'a> FromReader<'a> for SymbolInfo<'a>

source§

impl<'a> FromReader<'a> for TypeBounds

source§

impl<'a> FromReader<'a> for TypeRef

source§

impl<'a> FromReader<'a> for ValType

source§

impl<'a> FromReader<'a> for ArrayType

source§

impl<'a> FromReader<'a> for BranchHint

source§

impl<'a> FromReader<'a> for BranchHintFunction<'a>

source§

impl<'a> FromReader<'a> for Comdat<'a>

source§

impl<'a> FromReader<'a> for ComdatSymbol

source§

impl<'a> FromReader<'a> for ComponentExport<'a>

source§

impl<'a> FromReader<'a> for ComponentExportName<'a>

source§

impl<'a> FromReader<'a> for ComponentImport<'a>

source§

impl<'a> FromReader<'a> for ComponentImportName<'a>

source§

impl<'a> FromReader<'a> for ComponentInstantiationArg<'a>

source§

impl<'a> FromReader<'a> for ComponentStartFunction

source§

impl<'a> FromReader<'a> for ConstExpr<'a>

source§

impl<'a> FromReader<'a> for CoreDumpInstance

source§

impl<'a> FromReader<'a> for CoreDumpInstancesSection

source§

impl<'a> FromReader<'a> for CoreDumpModulesSection<'a>

source§

impl<'a> FromReader<'a> for CoreDumpSection<'a>

source§

impl<'a> FromReader<'a> for CoreDumpStackFrame

source§

impl<'a> FromReader<'a> for CoreDumpStackSection<'a>

source§

impl<'a> FromReader<'a> for Data<'a>

source§

impl<'a> FromReader<'a> for DefinedDataSymbol

source§

impl<'a> FromReader<'a> for Element<'a>

source§

impl<'a> FromReader<'a> for Export<'a>

source§

impl<'a> FromReader<'a> for FieldType

source§

impl<'a> FromReader<'a> for FuncType

source§

impl<'a> FromReader<'a> for FunctionBody<'a>

source§

impl<'a> FromReader<'a> for Global<'a>

source§

impl<'a> FromReader<'a> for GlobalType

source§

impl<'a> FromReader<'a> for Import<'a>

source§

impl<'a> FromReader<'a> for IndirectNaming<'a>

source§

impl<'a> FromReader<'a> for InitFunc

source§

impl<'a> FromReader<'a> for InstantiationArg<'a>

source§

impl<'a> FromReader<'a> for MemoryType

source§

impl<'a> FromReader<'a> for Naming<'a>

source§

impl<'a> FromReader<'a> for ProducersField<'a>

source§

impl<'a> FromReader<'a> for ProducersFieldValue<'a>

source§

impl<'a> FromReader<'a> for RecGroup

source§

impl<'a> FromReader<'a> for RefType

source§

impl<'a> FromReader<'a> for Segment<'a>

source§

impl<'a> FromReader<'a> for SegmentFlags

source§

impl<'a> FromReader<'a> for StructType

source§

impl<'a> FromReader<'a> for SubType

source§

impl<'a> FromReader<'a> for SymbolFlags

source§

impl<'a> FromReader<'a> for Table<'a>

source§

impl<'a> FromReader<'a> for TableType

source§

impl<'a> FromReader<'a> for TagType

source§

impl<'a> FromReader<'a> for TryTable

source§

impl<'a> FromReader<'a> for VariantCase<'a>