pub enum ComponentSectionType {
Module,
CoreInstance,
CoreType,
Component,
Instance,
Alias,
Type,
Canon,
Start,
Import,
Export,
Custom,
}
Expand description
The Component Model section types.
See SectionType for more information.
Variants§
Trait Implementations§
source§impl Clone for ComponentSectionType
impl Clone for ComponentSectionType
source§fn clone(&self) -> ComponentSectionType
fn clone(&self) -> ComponentSectionType
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 ComponentSectionType
impl Debug for ComponentSectionType
source§impl Ord for ComponentSectionType
impl Ord for ComponentSectionType
source§fn cmp(&self, other: &ComponentSectionType) -> Ordering
fn cmp(&self, other: &ComponentSectionType) -> 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 ComponentSectionType
impl PartialEq for ComponentSectionType
source§fn eq(&self, other: &ComponentSectionType) -> bool
fn eq(&self, other: &ComponentSectionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ComponentSectionType
impl PartialOrd for ComponentSectionType
source§fn partial_cmp(&self, other: &ComponentSectionType) -> Option<Ordering>
fn partial_cmp(&self, other: &ComponentSectionType) -> 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 moresource§impl Section<ComponentIndexSpace, ComponentSectionType> for Alias
impl Section<ComponentIndexSpace, ComponentSectionType> for Alias
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for Canon
impl Section<ComponentIndexSpace, ComponentSectionType> for Canon
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl<Ast: AstCustomization> Section<ComponentIndexSpace, ComponentSectionType> for Component<Ast>
impl<Ast: AstCustomization> Section<ComponentIndexSpace, ComponentSectionType> for Component<Ast>
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentExport
impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentExport
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentImport
impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentImport
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentInstance
impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentInstance
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl<Ast: AstCustomization> Section<ComponentIndexSpace, ComponentSectionType> for ComponentSection<Ast>
impl<Ast: AstCustomization> Section<ComponentIndexSpace, ComponentSectionType> for ComponentSection<Ast>
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentStart
impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentStart
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentType
impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentType
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for CoreType
impl Section<ComponentIndexSpace, ComponentSectionType> for CoreType
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for Custom
impl Section<ComponentIndexSpace, ComponentSectionType> for Custom
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for IgnoredCustom
impl Section<ComponentIndexSpace, ComponentSectionType> for IgnoredCustom
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for Instance
impl Section<ComponentIndexSpace, ComponentSectionType> for Instance
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl Section<ComponentIndexSpace, ComponentSectionType> for MetadataOnlyCustom
impl Section<ComponentIndexSpace, ComponentSectionType> for MetadataOnlyCustom
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl<Ast: AstCustomization> Section<ComponentIndexSpace, ComponentSectionType> for Module<Ast>
impl<Ast: AstCustomization> Section<ComponentIndexSpace, ComponentSectionType> for Module<Ast>
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl SectionType for ComponentSectionType
impl SectionType for ComponentSectionType
source§fn allow_grouping(&self) -> bool
fn allow_grouping(&self) -> bool
If a section type supports grouping, then sections of the same type next to each other will be serialized into a single WASM section
containing multiple elements when writing out a WASM binary. Read more
impl Eq for ComponentSectionType
impl StructuralPartialEq for ComponentSectionType
Auto Trait Implementations§
impl Freeze for ComponentSectionType
impl RefUnwindSafe for ComponentSectionType
impl Send for ComponentSectionType
impl Sync for ComponentSectionType
impl Unpin for ComponentSectionType
impl UnwindSafe for ComponentSectionType
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.