lovm2_core 0.4.8

a lightweight virtual machine with a focus on simplicity and extendability.
Documentation
#[derive(Debug, PartialEq)]
pub enum Lovm2ErrorTy {
    Custom(String),

    Basic,
    FrameStackEmpty,
    ImportConflict,
    InvalidSetTarget,
    InvalidType,
    KeyNotFound,
    LookupFailed,
    ModuleNotFound,
    NoEntryPoint,
    OperationNotSupported,
    ValueStackEmpty,
}

impl std::fmt::Display for Lovm2ErrorTy {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        if let Self::Custom(cty) = self {
            write!(f, "{}", cty)
        } else {
            write!(f, "{:?}", self)
        }
    }
}