[−][src]Struct runestick::VmError
Errors raised by the execution of the virtual machine.
Implementations
impl VmError
[src]
pub fn panic<D>(message: D) -> Self where
D: BoxedPanic,
[src]
D: BoxedPanic,
Return an error encapsulating a panic.
pub fn bad_argument<T>(arg: usize, value: &Value) -> Result<Self, VmError> where
T: ValueType,
[src]
T: ValueType,
Bad argument.
pub fn expected<T>(actual: TypeInfo) -> Self where
T: ValueType,
[src]
T: ValueType,
Construct an expected error.
pub fn expected_any(actual: TypeInfo) -> Self
[src]
Construct an expected any error.
pub fn kind(&self) -> &VmErrorKind
[src]
Access the underlying error kind.
pub fn into_unwinded(self, unit: &Arc<Unit>, ip: usize) -> Self
[src]
Convert into an unwinded vm error.
pub fn into_unwound(self) -> (Self, Option<(Arc<Unit>, usize)>)
[src]
Unpack an unwinded error, if it is present.
pub fn unpack_critical(self) -> Result<Self, Self>
[src]
Unsmuggles the vm error, returning Ok(Self) in case the error is critical and should be propagated unaltered.
Trait Implementations
impl Debug for VmError
[src]
impl Display for VmError
[src]
impl Error for VmError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[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<E> From<E> for VmError where
VmErrorKind: From<E>,
[src]
VmErrorKind: From<E>,
Auto Trait Implementations
impl !RefUnwindSafe for VmError
impl Send for VmError
impl Sync for VmError
impl Unpin for VmError
impl !UnwindSafe for VmError
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>,