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

Method ty

crates/environ/src/module.rs:157–162  ·  view source on GitHub ↗

Returns the type of this segment.

(&self)

Source from the content-addressed store, hash-verified

155impl TableSegmentElements {
156 /// Returns the type of this segment.
157 pub fn ty(&self) -> WasmRefType {
158 match self {
159 Self::Functions(_) => WasmRefType::FUNCREF,
160 Self::Expressions { ty, .. } => *ty,
161 }
162 }
163
164 /// Returns the number of elements in this segment.
165 pub fn len(&self) -> u64 {

Callers 5

func_paramsMethod · 0.45
func_resultsMethod · 0.45
tag_paramsMethod · 0.45
exnref_newMethod · 0.45
import_transcoderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected