Struct cranelift_wasm::wasmparser::SubType
source · pub struct SubType {
pub is_final: bool,
pub supertype_idx: Option<u32>,
pub structural_type: StructuralType,
}
Expand description
Represents a subtype of possible other types in a WebAssembly module.
Fields§
§is_final: bool
Is the subtype final.
supertype_idx: Option<u32>
The list of supertype indexes. As of GC MVP, there can be at most one supertype.
structural_type: StructuralType
The structural type of the subtype.
Trait Implementations§
source§impl<'a> FromReader<'a> for SubType
impl<'a> FromReader<'a> for SubType
source§fn from_reader(
reader: &mut BinaryReader<'a>
) -> Result<SubType, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a> ) -> Result<SubType, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.Auto Trait Implementations§
impl RefUnwindSafe for SubType
impl Send for SubType
impl Sync for SubType
impl Unpin for SubType
impl UnwindSafe for SubType
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