MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / kind

Method kind

crates/types/src/lib.rs:391–398  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

389impl ExternVal {
390 #[inline]
391 pub const fn kind(&self) -> ExternalKind {
392 match self {
393 Self::Func(_) => ExternalKind::Func,
394 Self::Table(_) => ExternalKind::Table,
395 Self::Memory(_) => ExternalKind::Memory,
396 Self::Global(_) => ExternalKind::Global,
397 }
398 }
399
400 #[inline]
401 pub const fn new(kind: ExternalKind, addr: Addr) -> Self {

Callers 2

eqMethod · 0.80
linkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected