pub enum FromSliceError<E>{
TryInto {
source: E,
backtrace: Backtrace,
},
NoImmediate {
backtrace: Backtrace,
},
}Expand description
Errors that can occur when parsing an operation from a byte slice.
Variants§
TryInto
Converting the byte slice into an immediate failed.
Often means the slice was the wrong length.
Fields
§
source: EThe source of this error.
NoImmediate
The slice is too long for instructions that do not take an immediate argument.
Trait Implementations§
Source§impl<E> Debug for FromSliceError<E>
impl<E> Debug for FromSliceError<E>
Source§impl<E> Display for FromSliceError<E>
impl<E> Display for FromSliceError<E>
Source§impl<E> Error for FromSliceError<E>
impl<E> Error for FromSliceError<E>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<E> ErrorCompat for FromSliceError<E>
impl<E> ErrorCompat for FromSliceError<E>
Source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreAuto Trait Implementations§
impl<E> Freeze for FromSliceError<E>where
E: Freeze,
impl<E> RefUnwindSafe for FromSliceError<E>where
E: RefUnwindSafe,
impl<E> Send for FromSliceError<E>where
E: Send,
impl<E> Sync for FromSliceError<E>where
E: Sync,
impl<E> Unpin for FromSliceError<E>where
E: Unpin,
impl<E> UnwindSafe for FromSliceError<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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