Enum ketos::encode::DecodeError [] [src]

pub enum DecodeError {
    DivisionByZero,
    EmptyList,
    IncorrectMagicNumber([u8; 4]),
    IncorrectVersion(u32),
    InvalidChar(u32),
    InvalidCodeFlags(u32),
    InvalidName(u32),
    InvalidParamCount,
    InvalidType(u8),
    InvalidUtf8,
    UnbalancedComma,
    UnexpectedEof,
}

Error in decoding bytecode file format

Variants

DivisionByZero

Ratio with zero divisor encountered

EmptyList

Empty list encountered

IncorrectMagicNumber([u8; 4])

Incorrect magic number in file header

IncorrectVersion(u32)

Incorrect version number in file header

InvalidChar(u32)

Invalid unicode character value

InvalidCodeFlags(u32)

Invalid flags in code object

InvalidName(u32)

Invalid name value

InvalidParamCount

Invalid parameter count in code object

InvalidType(u8)

Invalid type value

InvalidUtf8

Invalid UTF-8 in string value

UnbalancedComma

Unbalanced Quasiquote and Comma values

UnexpectedEof

Unexpected end-of-file

Trait Implementations

impl Debug for DecodeError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for DecodeError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.