Enum wasm_encoder::ComponentSectionId
source · #[repr(u8)]
pub enum ComponentSectionId {
CoreCustom,
CoreModule,
CoreInstance,
CoreType,
Component,
Instance,
Alias,
Type,
CanonicalFunction,
Start,
Import,
Export,
}
Expand description
Known section identifiers of WebAssembly components.
These sections are supported by the component model proposal.
Variants§
CoreCustom
The section is a core custom section.
CoreModule
The section is a core module section.
CoreInstance
The section is a core instance section.
CoreType
The section is a core type section.
Component
The section is a component section.
Instance
The section is an instance section.
Alias
The section is an alias section.
Type
The section is a type section.
CanonicalFunction
The section is a canonical function section.
Start
The section is a start section.
Import
The section is an import section.
Export
The section is an export section.
Trait Implementations§
source§impl Clone for ComponentSectionId
impl Clone for ComponentSectionId
source§fn clone(&self) -> ComponentSectionId
fn clone(&self) -> ComponentSectionId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComponentSectionId
impl Debug for ComponentSectionId
source§impl Encode for ComponentSectionId
impl Encode for ComponentSectionId
source§impl From<ComponentSectionId> for u8
impl From<ComponentSectionId> for u8
source§fn from(id: ComponentSectionId) -> u8
fn from(id: ComponentSectionId) -> u8
Converts to this type from the input type.
source§impl Ord for ComponentSectionId
impl Ord for ComponentSectionId
source§fn cmp(&self, other: &ComponentSectionId) -> Ordering
fn cmp(&self, other: &ComponentSectionId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ComponentSectionId> for ComponentSectionId
impl PartialEq<ComponentSectionId> for ComponentSectionId
source§fn eq(&self, other: &ComponentSectionId) -> bool
fn eq(&self, other: &ComponentSectionId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ComponentSectionId> for ComponentSectionId
impl PartialOrd<ComponentSectionId> for ComponentSectionId
source§fn partial_cmp(&self, other: &ComponentSectionId) -> Option<Ordering>
fn partial_cmp(&self, other: &ComponentSectionId) -> Option<Ordering>
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 more