#[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,
}
Available on crate feature
component-model
only.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