Enum aluvm::data::encoding::DecodeError
source · pub enum DecodeError {
Io(IoError),
InvalidBool(u8),
InvalidUtf8(FromUtf8Error),
NumberLayout(Layout, Vec<u8>),
FloatLayout(u8),
Lib(SegmentError),
LibSeg(LibSegOverflow),
IsaSeg(IsaSegError),
}Expand description
Errors decoding AluVM data containers
Variants§
Io(IoError)
data reading error ({0})
InvalidBool(u8)
invalid bool value {0}
InvalidUtf8(FromUtf8Error)
invalid UTF8 string data
details: {0}
NumberLayout(Layout, Vec<u8>)
number data does not match provided layout {0:?}
number data: {1:#02x?}
FloatLayout(u8)
unknown float layout type {0}
Lib(SegmentError)
Library construction errors
LibSeg(LibSegOverflow)
Library segment construction error
IsaSeg(IsaSegError)
ISAE segment construction error
Trait Implementations§
source§impl Clone for DecodeError
impl Clone for DecodeError
source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a copy of the value. Read more
1.0.0 · 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 DecodeError
impl Debug for DecodeError
source§impl Display for DecodeError
impl Display for DecodeError
source§impl Error for DecodeError
impl Error for DecodeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DecodeError> for String
impl From<DecodeError> for String
source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for DecodeError
impl From<Error> for DecodeError
source§impl From<FromUtf8Error> for DecodeError
impl From<FromUtf8Error> for DecodeError
source§fn from(v: FromUtf8Error) -> Self
fn from(v: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<IoError> for DecodeError
impl From<IoError> for DecodeError
source§impl From<IsaSegError> for DecodeError
impl From<IsaSegError> for DecodeError
source§fn from(v: IsaSegError) -> Self
fn from(v: IsaSegError) -> Self
Converts to this type from the input type.
source§impl From<LibSegOverflow> for DecodeError
impl From<LibSegOverflow> for DecodeError
source§fn from(v: LibSegOverflow) -> Self
fn from(v: LibSegOverflow) -> Self
Converts to this type from the input type.
source§impl From<SegmentError> for DecodeError
impl From<SegmentError> for DecodeError
source§fn from(v: SegmentError) -> Self
fn from(v: SegmentError) -> Self
Converts to this type from the input type.
source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
source§fn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DecodeError
impl StructuralEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl !RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl !UnwindSafe for DecodeError
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.