Make FuncIndex and DefinedFuncIndex implement the Debug trait.
This commit is contained in:
@@ -4,12 +4,12 @@ use std::u32;
|
|||||||
use wasmparser;
|
use wasmparser;
|
||||||
|
|
||||||
/// Index type of a function (imported or defined) inside the WebAssembly module.
|
/// Index type of a function (imported or defined) inside the WebAssembly module.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Debug)]
|
||||||
pub struct FuncIndex(u32);
|
pub struct FuncIndex(u32);
|
||||||
entity_impl!(FuncIndex);
|
entity_impl!(FuncIndex);
|
||||||
|
|
||||||
/// Index type of a defined function inside the WebAssembly module.
|
/// Index type of a defined function inside the WebAssembly module.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Debug)]
|
||||||
pub struct DefinedFuncIndex(u32);
|
pub struct DefinedFuncIndex(u32);
|
||||||
entity_impl!(DefinedFuncIndex);
|
entity_impl!(DefinedFuncIndex);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user