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 PartialEq for SectionId
impl PartialEq for SectionId
source§impl PartialOrd for SectionId
impl PartialOrd for SectionId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SectionId
impl Eq for SectionId
impl StructuralEq for SectionId
impl StructuralPartialEq for SectionId
Auto Trait Implementations§
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