pub enum ValType {
NumType(NumType),
VecType,
RefType(RefType),
}
Expand description
https://webassembly.github.io/spec/core/binary/types.html#reference-types
TODO flatten NumType and RefType enums, as they are not used individually and wasmparser
also does it.
Variants§
Implementations§
Trait Implementations§
source§impl PartialEq for ValType
impl PartialEq for ValType
source§impl WasmReadable for ValType
impl WasmReadable for ValType
source§fn read(wasm: &mut WasmReader<'_>) -> Result<Self>
fn read(wasm: &mut WasmReader<'_>) -> Result<Self>
source§fn read_unvalidated(wasm: &mut WasmReader<'_>) -> Self
fn read_unvalidated(wasm: &mut WasmReader<'_>) -> Self
impl Copy for ValType
impl Eq for ValType
impl StructuralPartialEq for ValType
Auto Trait Implementations§
impl RefUnwindSafe for ValType
impl Send for ValType
impl Sync for ValType
impl Unpin for ValType
impl UnwindSafe for ValType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more