Enum wasm_encoder::SectionId
source · #[repr(u8)]pub enum SectionId {
Show 14 variants
Custom = 0,
Type = 1,
Import = 2,
Function = 3,
Table = 4,
Memory = 5,
Global = 6,
Export = 7,
Start = 8,
Element = 9,
Code = 10,
Data = 11,
DataCount = 12,
Tag = 13,
}
Expand description
Known section identifiers of WebAssembly modules.
Variants§
Custom = 0
The custom section.
Type = 1
The type section.
Import = 2
The import section.
Function = 3
The function section.
Table = 4
The table section.
Memory = 5
The memory section.
Global = 6
The global section.
Export = 7
The export section.
Start = 8
The start section.
Element = 9
The element section.
Code = 10
The code section.
Data = 11
The data section.
DataCount = 12
The data count section.
Tag = 13
The tag section.
This section is supported by the exception handling proposal.
Trait Implementations§
source§impl Ord for SectionId
impl Ord for SectionId
source§impl PartialOrd for SectionId
impl PartialOrd for SectionId
impl Copy for SectionId
impl Eq for SectionId
impl StructuralPartialEq for SectionId
Auto Trait Implementations§
impl Freeze for SectionId
impl RefUnwindSafe for SectionId
impl Send for SectionId
impl Sync for SectionId
impl Unpin for SectionId
impl UnwindSafe for SectionId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)