pub enum ModuleError {
Io(IoError),
IsaeLengthLimExceeded(usize),
LibCountLimExceeded,
VarNonUtf8(FromUtf8Error),
RoutineNonUtf8(FromUtf8Error),
ExternalNonUtf8(FromUtf8Error),
VarUnknownType(u8, String),
VarWrongSignByte(u8, String),
VarWrongLayout {
layout_bytes: u16,
data_bytes: u16,
info: String,
},
VarWrongFloatType(u8, String),
}
Expand description
TODO: use in decoding (currently unused, had left after refactoring)
Variants§
Io(IoError)
end of data is reached before the complete module read
details: {0}
IsaeLengthLimExceeded(usize)
length of ISA extensions segment is {0} exceeds limit
LibCountLimExceeded
module contains too many libraries exceeding per-module lib limit
VarNonUtf8(FromUtf8Error)
input variable description has a non-UTF8 encoding
details: {0}
RoutineNonUtf8(FromUtf8Error)
routine symbol name has a non-UTF8 encoding
details: {0}
ExternalNonUtf8(FromUtf8Error)
external call symbol has a non-UTF8 encoding
details: {0}
VarUnknownType(u8, String)
unknown type byte {0}
for input variable having description “{1}”
VarWrongSignByte(u8, String)
wrong sign integer layout byte {0}
for input variable having description “{1}”
VarWrongLayout
layout size ({layout_bytes} bytes) does not match {data_bytes} size of the default value for variable with description “{info}”
VarWrongFloatType(u8, String)
unknown float layout type {0}
for input variable having description “{1}”
Trait Implementations§
Source§impl Clone for ModuleError
impl Clone for ModuleError
Source§fn clone(&self) -> ModuleError
fn clone(&self) -> ModuleError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more