pub enum DecodeContext {
Show 17 variants
Magic,
Version,
SectionHeader,
SectionBody {
id: u8,
},
Leb128,
TypeSection,
ImportSection,
FunctionSection,
TableSection,
GlobalSection,
MemorySection,
ExportSection,
StartSection,
ElementSection,
DataSection,
DataCountSection,
CodeSection,
}Expand description
Contextual information about what was being decoded when the error occurred.
Variants§
Magic
Decoding the WASM magic number.
Version
Decoding the WASM version number.
SectionHeader
Decoding a section header.
SectionBody
Decoding section contents.
Leb128
Decoding a LEB128 value.
TypeSection
Decoding a type section entry.
ImportSection
Decoding an import section entry.
FunctionSection
Decoding a function section entry.
TableSection
Decoding a table section entry.
GlobalSection
Decoding a global section entry.
MemorySection
Decoding a memory section entry.
ExportSection
Decoding an export section entry.
StartSection
Decoding a start section entry.
ElementSection
Decoding an element section entry.
DataSection
Decoding a data section entry.
DataCountSection
Decoding a data count section entry.
CodeSection
Decoding a code section entry.
Trait Implementations§
Source§impl Clone for DecodeContext
impl Clone for DecodeContext
Source§fn clone(&self) -> DecodeContext
fn clone(&self) -> DecodeContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodeContext
Source§impl Debug for DecodeContext
impl Debug for DecodeContext
Source§impl Display for DecodeContext
impl Display for DecodeContext
impl Eq for DecodeContext
Source§impl PartialEq for DecodeContext
impl PartialEq for DecodeContext
impl StructuralPartialEq for DecodeContext
Auto Trait Implementations§
impl Freeze for DecodeContext
impl RefUnwindSafe for DecodeContext
impl Send for DecodeContext
impl Sync for DecodeContext
impl Unpin for DecodeContext
impl UnsafeUnpin for DecodeContext
impl UnwindSafe for DecodeContext
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