Enum wasm_encoder::ComponentSectionId
source · #[repr(u8)]pub enum ComponentSectionId {
CoreCustom = 0,
CoreModule = 1,
CoreInstance = 2,
CoreType = 3,
Component = 4,
Instance = 5,
Alias = 6,
Type = 7,
CanonicalFunction = 8,
Start = 9,
Import = 10,
Export = 11,
}
Expand description
Known section identifiers of WebAssembly components.
These sections are supported by the component model proposal.
Variants§
CoreCustom = 0
The section is a core custom section.
CoreModule = 1
The section is a core module section.
CoreInstance = 2
The section is a core instance section.
CoreType = 3
The section is a core type section.
Component = 4
The section is a component section.
Instance = 5
The section is an instance section.
Alias = 6
The section is an alias section.
Type = 7
The section is a type section.
CanonicalFunction = 8
The section is a canonical function section.
Start = 9
The section is a start section.
Import = 10
The section is an import section.
Export = 11
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 for ComponentSectionId
impl PartialEq for ComponentSectionId
source§impl PartialOrd for ComponentSectionId
impl PartialOrd for ComponentSectionId
impl Copy for ComponentSectionId
impl Eq for ComponentSectionId
impl StructuralPartialEq for ComponentSectionId
Auto Trait Implementations§
impl Freeze for ComponentSectionId
impl RefUnwindSafe for ComponentSectionId
impl Send for ComponentSectionId
impl Sync for ComponentSectionId
impl Unpin for ComponentSectionId
impl UnwindSafe for ComponentSectionId
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§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
)