[−][src]Enum stk::StackError
An error raised when interacting with types on the stack.
Variants
Internal error that happens when we run out of items in a list.
stack is empty
Attempt to pop outside of current frame offset.
Fields of PopOutOfBounds
frame: usize
CallFrame offset that we tried to pop.
The given slot is missing.
Fields of SlotMissing
slot: Slot
The slot that was missing.
The given slot is inaccessible.
Fields of SlotInaccessibleExclusive
slot: Slot
The slot that could not be accessed.
The given slot is inaccessible.
Error raised when we expect a specific external type but got another.
Fields of UnexpectedSlotType
Error raised when we expected a unit.
Fields of ExpectedNone
actual: ValueTypeInfo
The actual type found.
Error raised when we expected a boolean value.
Fields of ExpectedBoolean
actual: ValueTypeInfo
The actual type found.
Error raised when we expected a char value.
Fields of ExpectedChar
actual: ValueTypeInfo
The actual type found.
Error raised when an integer value was expected.
Fields of ExpectedInteger
actual: ValueTypeInfo
The actual type found.
Error raised when we expected a float value.
Fields of ExpectedFloat
actual: ValueTypeInfo
The actual type found.
Error raised when we expected a string.
Fields of ExpectedString
actual: ValueTypeInfo
The actual type observed instead.
Error raised when we expected a array.
Fields of ExpectedArray
actual: ValueTypeInfo
The actual type observed instead.
Error raised when we expected an array of the given length.
Fields of ExpectedArrayLength
Error raised when we expected a object.
Fields of ExpectedObject
actual: ValueTypeInfo
The actual type observed instead.
Error raised when we expected an external value.
Fields of ExpectedExternal
actual: ValueTypeInfo
The actual type observed instead.
Error raised when we expected a managed value.
Fields of ExpectedManaged
actual: ValueTypeInfo
The actual type observed instead.
Error raised when we expected a managed value with a specific slot.
Failure to convert a number into an integer.
Fields of ValueToIntegerCoercionError
Failure to convert an integer into a value.
Fields of IntegerToValueCoercionError
We encountered a corrupted stack frame.
Fields of CorruptedStackFrame
Trait Implementations
impl Debug for StackError
[src]
impl Display for StackError
[src]
impl Error for StackError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<StackError> for VmError
[src]
fn from(source: StackError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for StackError
impl Send for StackError
impl Sync for StackError
impl Unpin for StackError
impl UnwindSafe for StackError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,