1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
// SPDX-License-Identifier: Apache-2.0 // Copyright 2025 The Hyperlight Authors. /// core:sort in the specification #[derive(Debug, Clone, Copy)] pub enum CoreSort { Func, Table, Memory, Global, Type, Module, Instance, } /// sort in the specification #[derive(Debug, Clone, Copy)] pub enum Sort { Core(CoreSort), Func, Value, Type, Component, Instance, } /// sortidx in the specification #[derive(Debug, Clone, Copy)] pub struct SortIdx { pub sort: Sort, pub idx: u32, } /// funcidx in the specification pub type FuncIdx = u32;