MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / as_raw

Method as_raw

cranelift/codegen/src/ir/trapcode.rs:73–75  ·  view source on GitHub ↗

Returns the raw byte representing this trap.

(&self)

Source from the content-addressed store, hash-verified

71
72 /// Returns the raw byte representing this trap.
73 pub const fn as_raw(&self) -> NonZeroU8 {
74 self.0
75 }
76
77 /// Creates a trap code from its raw byte, likely returned by
78 /// [`TrapCode::as_raw`] previously.

Callers 2

with_trap_codeMethod · 0.45
fromMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected