pub struct FunctionOps {
pub index: u32,
pub export_name: Option<String>,
pub ops: Vec<WasmOp>,
pub unsupported: Option<String>,
}Expand description
Decoded function with its WasmOp sequence
Fields§
§index: u32Function index in the module (includes imported functions)
export_name: Option<String>Export name if this function is exported
ops: Vec<WasmOp>The WASM operations in this function body
unsupported: Option<String>Some(reason) when the body contained a value-affecting operator the
decoder cannot lower (e.g. scalar f32/f64 — #369, bulk-memory
memory.copy/fill). Such an op would otherwise be silently dropped
(convert_operator → None), leaving the operand stack wrong and the
function a silent miscompile. The compile path LOUD-SKIPS a flagged
function (diagnostic + symbol absent → link error names it) instead —
the #180/#185 “unsupported op must Err, never silently continue”
contract. None once every op decoded or was intentionally ignorable
(Nop/Unreachable).
Trait Implementations§
Source§impl Clone for FunctionOps
impl Clone for FunctionOps
Source§fn clone(&self) -> FunctionOps
fn clone(&self) -> FunctionOps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionOps
impl RefUnwindSafe for FunctionOps
impl Send for FunctionOps
impl Sync for FunctionOps
impl Unpin for FunctionOps
impl UnsafeUnpin for FunctionOps
impl UnwindSafe for FunctionOps
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