wasmer_types/stack/
trap.rsuse crate::CodeOffset;
use crate::TrapCode;
use rkyv::{Archive, Deserialize as RkyvDeserialize, Serialize as RkyvSerialize};
#[cfg(feature = "enable-serde")]
use serde::{Deserialize, Serialize};
#[cfg_attr(feature = "enable-serde", derive(Deserialize, Serialize))]
#[cfg_attr(feature = "artifact-size", derive(loupe::MemoryUsage))]
#[derive(
RkyvSerialize, RkyvDeserialize, Archive, rkyv::CheckBytes, Clone, Copy, Debug, PartialEq, Eq,
)]
#[archive(as = "Self")]
pub struct TrapInformation {
pub code_offset: CodeOffset,
pub trap_code: TrapCode,
}