pub trait Encode {
// Required method
fn encode(&self, sink: &mut Vec<u8>);
}
Expand description
Implemented by types that can be encoded into a byte sink.
Required Methods§
Implementations on Foreign Types§
Implementors§
impl Encode for AbstractHeapType
impl Encode for Alias<'_>
Available on crate feature
component-model
only.impl Encode for BlockType
impl Encode for CanonicalOption
Available on crate feature
component-model
only.impl Encode for Catch
impl Encode for ComponentExportKind
Available on crate feature
component-model
only.impl Encode for ComponentOuterAliasKind
Available on crate feature
component-model
only.impl Encode for ComponentSectionId
Available on crate feature
component-model
only.impl Encode for ComponentTypeRef
Available on crate feature
component-model
only.impl Encode for ComponentValType
Available on crate feature
component-model
only.impl Encode for CoreDumpValue
impl Encode for EntityType
impl Encode for ExportKind
impl Encode for Handle
impl Encode for HeapType
impl Encode for Instruction<'_>
impl Encode for ModuleArg
Available on crate feature
component-model
only.impl Encode for Ordering
impl Encode for PrimitiveValType
Available on crate feature
component-model
only.impl Encode for SectionId
impl Encode for StorageType
impl Encode for TypeBounds
Available on crate feature
component-model
only.impl Encode for ValType
impl Encode for BranchHints
impl Encode for CanonicalFunctionSection
Available on crate feature
component-model
only.impl Encode for CodeSection
impl Encode for ComponentAliasSection
Available on crate feature
component-model
only.impl Encode for ComponentExportSection
Available on crate feature
component-model
only.impl Encode for ComponentImportSection
Available on crate feature
component-model
only.impl Encode for ComponentInstanceSection
Available on crate feature
component-model
only.impl Encode for ComponentNameSection
Available on crate feature
component-model
only.impl Encode for ComponentType
Available on crate feature
component-model
only.impl Encode for ComponentTypeSection
Available on crate feature
component-model
only.impl Encode for ConstExpr
impl Encode for CoreDumpInstancesSection
impl Encode for CoreDumpModulesSection
impl Encode for CoreDumpSection
impl Encode for CoreDumpStackSection
impl Encode for CoreTypeSection
Available on crate feature
component-model
only.impl Encode for CustomSection<'_>
impl Encode for DataCountSection
impl Encode for DataSection
impl Encode for ElementSection
impl Encode for ExportSection
impl Encode for Function
impl Encode for FunctionSection
impl Encode for GlobalSection
impl Encode for GlobalType
impl Encode for ImportSection
impl Encode for IndirectNameMap
impl Encode for InstanceSection
Available on crate feature
component-model
only.impl Encode for InstanceType
Available on crate feature
component-model
only.impl Encode for LinkingSection
impl Encode for MemArg
impl Encode for MemorySection
impl Encode for MemoryType
impl Encode for ModuleSection<'_>
Available on crate feature
component-model
only.impl Encode for ModuleType
Available on crate feature
component-model
only.impl Encode for NameMap
impl Encode for NameSection
impl Encode for NestedComponentSection<'_>
Available on crate feature
component-model
only.impl Encode for ProducersField
impl Encode for ProducersSection
impl Encode for RawCustomSection<'_>
impl Encode for RawSection<'_>
impl Encode for RefType
impl Encode for StartSection
impl Encode for SymbolTable
impl Encode for TableSection
impl Encode for TableType
impl Encode for TagSection
impl Encode for TagType
impl Encode for TypeSection
impl<A> Encode for ComponentStartSection<A>
Available on crate feature
component-model
only.