pub trait ReencodeComponent: Reencode {
Show 53 methods
// Provided methods
fn component_type_index(&mut self, ty: u32) -> u32 { ... }
fn component_instance_index(&mut self, ty: u32) -> u32 { ... }
fn component_func_index(&mut self, ty: u32) -> u32 { ... }
fn component_index(&mut self, ty: u32) -> u32 { ... }
fn module_index(&mut self, ty: u32) -> u32 { ... }
fn instance_index(&mut self, ty: u32) -> u32 { ... }
fn component_value_index(&mut self, ty: u32) -> u32 { ... }
fn outer_type_index(&mut self, count: u32, ty: u32) -> u32 { ... }
fn outer_component_type_index(&mut self, count: u32, ty: u32) -> u32 { ... }
fn outer_component_index(&mut self, count: u32, component: u32) -> u32 { ... }
fn outer_module_index(&mut self, count: u32, module: u32) -> u32 { ... }
fn push_depth(&mut self) { ... }
fn pop_depth(&mut self) { ... }
fn component_external_index(
&mut self,
kind: ComponentExternalKind,
index: u32,
) -> u32 { ... }
fn parse_component(
&mut self,
component: &mut Component,
parser: Parser,
data: &[u8],
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_payload(
&mut self,
component: &mut Component,
payload: Payload<'_>,
whole_component: &[u8],
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_submodule(
&mut self,
component: &mut Component,
parser: Parser,
module: &[u8],
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_subcomponent(
&mut self,
component: &mut Component,
parser: Parser,
subcomponent: &[u8],
whole_component: &[u8],
) -> Result<(), Error<Self::Error>> { ... }
fn parse_unknown_component_section(
&mut self,
component: &mut Component,
id: u8,
contents: &[u8],
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_custom_section(
&mut self,
component: &mut Component,
section: CustomSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_type_section(
&mut self,
types: &mut ComponentTypeSection,
section: ComponentTypeSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_type(
&mut self,
dst: ComponentTypeEncoder<'_>,
ty: ComponentType<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn component_instance_type(
&mut self,
ty: Box<[InstanceTypeDeclaration<'_>]>,
) -> Result<InstanceType, Error<Self::Error>> { ... }
fn parse_component_instance_type_declaration(
&mut self,
ty: &mut InstanceType,
decl: InstanceTypeDeclaration<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_core_type(
&mut self,
ty: ComponentCoreTypeEncoder<'_>,
core: CoreType<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn component_type(
&mut self,
ty: Box<[ComponentTypeDeclaration<'_>]>,
) -> Result<ComponentType, Error<Self::Error>> { ... }
fn parse_component_type_declaration(
&mut self,
component: &mut ComponentType,
decl: ComponentTypeDeclaration<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_func_type(
&mut self,
func: ComponentFuncTypeEncoder<'_>,
ty: ComponentFuncType<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_defined_type(
&mut self,
defined: ComponentDefinedTypeEncoder<'_>,
ty: ComponentDefinedType<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn component_module_type(
&mut self,
ty: Box<[ModuleTypeDeclaration<'_>]>,
) -> Result<ModuleType, Error<Self::Error>> { ... }
fn parse_component_module_type_declaration(
&mut self,
module: &mut ModuleType,
decl: ModuleTypeDeclaration<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn component_alias<'a>(
&mut self,
alias: ComponentAlias<'a>,
) -> Result<Alias<'a>, Error<Self::Error>> { ... }
fn parse_component_import_section(
&mut self,
imports: &mut ComponentImportSection,
section: ComponentImportSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_canonical_section(
&mut self,
canonical: &mut CanonicalFunctionSection,
section: ComponentCanonicalSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_canonical(
&mut self,
section: &mut CanonicalFunctionSection,
func: CanonicalFunction,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_alias_section(
&mut self,
aliases: &mut ComponentAliasSection,
section: ComponentAliasSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_instance_section(
&mut self,
instances: &mut ComponentInstanceSection,
section: ComponentInstanceSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_instance(
&mut self,
instances: &mut ComponentInstanceSection,
instance: ComponentInstance<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_instance_section(
&mut self,
instances: &mut InstanceSection,
section: InstanceSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_instance(
&mut self,
instances: &mut InstanceSection,
instance: Instance<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_core_type_section(
&mut self,
types: &mut CoreTypeSection,
section: CoreTypeSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_export_section(
&mut self,
exports: &mut ComponentExportSection,
section: ComponentExportSectionReader<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_export(
&mut self,
exports: &mut ComponentExportSection,
export: ComponentExport<'_>,
) -> Result<(), Error<Self::Error>> { ... }
fn parse_component_start_section(
&mut self,
component: &mut Component,
func: ComponentStartFunction,
) -> Result<(), Error<Self::Error>> { ... }
fn component_type_ref(&mut self, ty: ComponentTypeRef) -> ComponentTypeRef { ... }
fn component_primitive_val_type(
&mut self,
ty: PrimitiveValType,
) -> PrimitiveValType { ... }
fn component_export_kind(
&mut self,
ty: ComponentExternalKind,
) -> ComponentExportKind { ... }
fn component_outer_alias_kind(
&mut self,
kind: ComponentOuterAliasKind,
) -> ComponentOuterAliasKind { ... }
fn component_val_type(&mut self, ty: ComponentValType) -> ComponentValType { ... }
fn type_bounds(&mut self, ty: TypeBounds) -> TypeBounds { ... }
fn canonical_option(&mut self, ty: CanonicalOption) -> CanonicalOption { ... }
fn custom_component_name_section(
&mut self,
section: ComponentNameSectionReader<'_>,
) -> Result<ComponentNameSection, Error<Self::Error>> { ... }
fn parse_custom_component_name_subsection(
&mut self,
names: &mut ComponentNameSection,
section: ComponentName<'_>,
) -> Result<(), Error<Self::Error>> { ... }
}