pub enum ProgramDecodeErrorKind {
Show 14 variants
InputLimitExceeded {
limit: usize,
actual: usize,
},
UnexpectedEof,
BadMagic {
expected: u8,
actual: u8,
},
UnsupportedVersion {
version: u8,
},
MalformedInteger,
NonCanonicalInteger,
IntegerOverflow,
InvalidEdgeTarget {
tag: u8,
},
InvalidEdgeKind {
tag: u8,
},
InvalidBindingKind {
tag: u8,
},
InvalidExportSource {
tag: u8,
},
LimitExceeded {
field: &'static str,
limit: u64,
actual: u64,
},
Module {
module: ModuleId,
error: DecodeError,
},
TrailingBytes {
count: usize,
},
}Variants§
InputLimitExceeded
UnexpectedEof
BadMagic
UnsupportedVersion
MalformedInteger
NonCanonicalInteger
IntegerOverflow
InvalidEdgeTarget
InvalidEdgeKind
InvalidBindingKind
InvalidExportSource
LimitExceeded
Module
TrailingBytes
Trait Implementations§
Source§impl Clone for ProgramDecodeErrorKind
impl Clone for ProgramDecodeErrorKind
Source§fn clone(&self) -> ProgramDecodeErrorKind
fn clone(&self) -> ProgramDecodeErrorKind
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 moreSource§impl Debug for ProgramDecodeErrorKind
impl Debug for ProgramDecodeErrorKind
impl Eq for ProgramDecodeErrorKind
Source§impl PartialEq for ProgramDecodeErrorKind
impl PartialEq for ProgramDecodeErrorKind
impl StructuralPartialEq for ProgramDecodeErrorKind
Auto Trait Implementations§
impl Freeze for ProgramDecodeErrorKind
impl RefUnwindSafe for ProgramDecodeErrorKind
impl Send for ProgramDecodeErrorKind
impl Sync for ProgramDecodeErrorKind
impl Unpin for ProgramDecodeErrorKind
impl UnsafeUnpin for ProgramDecodeErrorKind
impl UnwindSafe for ProgramDecodeErrorKind
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