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
sourceimpl Clone for ComponentSectionId
impl Clone for ComponentSectionId
sourcefn clone(&self) -> ComponentSectionId
fn clone(&self) -> ComponentSectionId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ComponentSectionId
impl Debug for ComponentSectionId
sourceimpl Encode for ComponentSectionId
impl Encode for ComponentSectionId
sourceimpl From<ComponentSectionId> for u8
impl From<ComponentSectionId> for u8
sourcefn from(id: ComponentSectionId) -> u8
fn from(id: ComponentSectionId) -> u8
Performs the conversion.
sourceimpl Ord for ComponentSectionId
impl Ord for ComponentSectionId
sourceimpl PartialOrd<ComponentSectionId> for ComponentSectionId
impl PartialOrd<ComponentSectionId> for ComponentSectionId
sourcefn partial_cmp(&self, other: &ComponentSectionId) -> Option<Ordering>
fn partial_cmp(&self, other: &ComponentSectionId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for ComponentSectionId
impl Eq for ComponentSectionId
impl StructuralEq for ComponentSectionId
impl StructuralPartialEq for ComponentSectionId
Auto Trait Implementations
impl RefUnwindSafe for ComponentSectionId
impl Send for ComponentSectionId
impl Sync for ComponentSectionId
impl Unpin for ComponentSectionId
impl UnwindSafe for ComponentSectionId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more