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 moresourceimpl 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
Converts to this type from the input type.
sourceimpl Ord for ComponentSectionId
impl Ord for ComponentSectionId
sourcefn cmp(&self, other: &ComponentSectionId) -> Ordering
fn cmp(&self, other: &ComponentSectionId) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ComponentSectionId> for ComponentSectionId
impl PartialEq<ComponentSectionId> for ComponentSectionId
sourcefn eq(&self, other: &ComponentSectionId) -> bool
fn eq(&self, other: &ComponentSectionId) -> bool
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>
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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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