1use crate::functions::FunctionPointer;
2
3#[repr(C)]
4#[derive(Clone, Debug)]
5pub struct TableElement {
6 ty: u64,
7 func: u64,
8}
9
10impl TableElement {
11 pub fn function_pointer(&self) -> FunctionPointer {
12 FunctionPointer::from_usize(self.func as usize)
13 }
14}