[][src]Enum wain_syntax_binary::ErrorKind

pub enum ErrorKind {
    IntOverflow {
        ty: &'static str,
        got: Option<u64>,
    },
    UnexpectedEof {
        expected: &'static str,
    },
    WasmMagicNotFound,
    VersionMismatch([u8; 4]),
    LengthOutOfInput {
        input: usize,
        specified: usize,
        what: &'static str,
    },
    InvalidUtf8 {
        what: &'static str,
        error: Utf8Error,
    },
    UnexpectedByte {
        expected: Vec<u8>,
        got: u8,
        what: &'static str,
    },
    FuncCodeLengthMismatch {
        num_funcs: usize,
        num_codes: usize,
    },
    TooManyLocalVariables,
    MalformedSectionSize,
    ExpectedEof(u8),
}

Variants

IntOverflow

Fields of IntOverflow

ty: &'static strgot: Option<u64>
UnexpectedEof

Fields of UnexpectedEof

expected: &'static str
WasmMagicNotFound
VersionMismatch([u8; 4])
LengthOutOfInput

Fields of LengthOutOfInput

input: usizespecified: usizewhat: &'static str
InvalidUtf8

Fields of InvalidUtf8

what: &'static strerror: Utf8Error
UnexpectedByte

Fields of UnexpectedByte

expected: Vec<u8>got: u8what: &'static str
FuncCodeLengthMismatch

Fields of FuncCodeLengthMismatch

num_funcs: usizenum_codes: usize
TooManyLocalVariables
MalformedSectionSize
ExpectedEof(u8)

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.