fn section_order(s: &Section) -> u8 {
    match s {
        Section::Custom(_) => 0x00,
        Section::Unparsed { .. } => 0x00,
        Section::Type(_) => 0x1,
        Section::Import(_) => 0x2,
        Section::Function(_) => 0x3,
        Section::Table(_) => 0x4,
        Section::Memory(_) => 0x5,
        Section::Global(_) => 0x6,
        Section::Export(_) => 0x7,
        Section::Start(_) => 0x8,
        Section::Element(_) => 0x9,
        Section::Code(_) => 0x0a,
        Section::Data(_) => 0x0b,
        Section::Name(_) => 0x00,
        Section::Reloc(_) => 0x00,
    }
}
// NOTE: This seems to be exported properly in later versions of parity-wasm.
// TODO: When updated, use the proper method instead.
This seems to be exported properly in later versions of parity-wasm.
TODO: When updated, use the proper method instead.
This seems to be exported properly in later versions of parity - wasm . TODO : When updated use the proper method instead .
fn section_order(s: &Section) -> u8 {
    match s {
        Section::Custom(_) => 0x00,
        Section::Unparsed { .. } => 0x00,
        Section::Type(_) => 0x1,
        Section::Import(_) => 0x2,
        Section::Function(_) => 0x3,
        Section::Table(_) => 0x4,
        Section::Memory(_) => 0x5,
        Section::Global(_) => 0x6,
        Section::Export(_) => 0x7,
        Section::Start(_) => 0x8,
        Section::Element(_) => 0x9,
        Section::Code(_) => 0x0a,
        Section::Data(_) => 0x0b,
        Section::Name(_) => 0x00,
        Section::Reloc(_) => 0x00,
    }
}
fn section_order ( s : & Section ) -> u8 { match s { Section :: Custom ( _ ) => 0x00 , Section :: Unparsed { .. } => 0x00 , Section :: Type ( _ ) => 0x1 , Section :: Import ( _ ) => 0x2 , Section :: Function ( _ ) => 0x3 , Section :: Table ( _ ) => 0x4 , Section :: Memory ( _ ) => 0x5 , Section :: Global ( _ ) => 0x6 , Section :: Export ( _ ) => 0x7 , Section :: Start ( _ ) => 0x8 , Section :: Element ( _ ) => 0x9 , Section :: Code ( _ ) => 0x0a , Section :: Data ( _ ) => 0x0b , Section :: Name ( _ ) => 0x00 , Section :: Reloc ( _ ) => 0x00 , } }
NOTE: This seems to be exported properly in later versions of parity-wasm.
NOTE : This seems to be exported properly in later versions of parity - wasm .
s
&Section