MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / new

Method new

crates/types/src/lib.rs:401–408  ·  view source on GitHub ↗
(kind: ExternalKind, addr: Addr)

Source from the content-addressed store, hash-verified

399
400 #[inline]
401 pub const fn new(kind: ExternalKind, addr: Addr) -> Self {
402 match kind {
403 ExternalKind::Func => Self::Func(addr),
404 ExternalKind::Table => Self::Table(addr),
405 ExternalKind::Memory => Self::Memory(addr),
406 ExternalKind::Global => Self::Global(addr),
407 }
408 }
409}
410
411/// The type of a WebAssembly Function.

Callers

nothing calls this directly

Calls 4

TableClass · 0.85
MemoryClass · 0.85
GlobalClass · 0.70
lenMethod · 0.45

Tested by

no test coverage detected