(&self)
| 389 | impl 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 { |