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

Method new

crates/wasmtime/src/runtime/types.rs:519–524  ·  view source on GitHub ↗

Construct a new reference type.

(is_nullable: bool, heap_type: HeapType)

Source from the content-addressed store, hash-verified

517
518 /// Construct a new reference type.
519 pub fn new(is_nullable: bool, heap_type: HeapType) -> RefType {
520 RefType {
521 is_nullable,
522 heap_type,
523 }
524 }
525
526 /// Can this type of reference be null?
527 pub fn is_nullable(&self) -> bool {

Callers

nothing calls this directly

Calls 12

fromFunction · 0.85
try_collectMethod · 0.80
to_wasm_typeMethod · 0.80
try_newFunction · 0.50
expectMethod · 0.45
into_iterMethod · 0.45
iterMethod · 0.45
mapMethod · 0.45
unwrapMethod · 0.45
buildMethod · 0.45
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected