neige-lua 0.1.3

一个简单的lua运行时
Documentation
use super::value::LuaValue;

#[derive(Debug, Clone)]
pub struct LuaUpval {
    pub val: LuaValue,
}

impl LuaUpval {
    pub fn new(val: LuaValue) -> Self {
        Self { val }
    }

    pub fn new_fake() -> Self {
        Self { val: LuaValue::Nil }
    }

    pub fn set_val(&mut self, val: LuaValue) {
        self.val = val
    }
}