Wasm: Create Section trait for common functionality between module sections

This commit is contained in:
Brian Carroll 2022-01-09 09:01:43 +00:00
parent fd79613f0d
commit d3554b2ac0
2 changed files with 124 additions and 129 deletions

View file

@ -11,7 +11,7 @@ pub use sections::{ConstExpr, Export, ExportType, Global, GlobalType, Signature}
use self::linking::{LinkingSection, RelocationSection};
use self::sections::{
CodeSection, DataSection, ExportSection, FunctionSection, GlobalSection, ImportSection,
MemorySection, OpaqueSection, TypeSection,
MemorySection, OpaqueSection, Section, TypeSection,
};
use self::serialize::{SerialBuffer, Serialize};