tsuki 0.4.8

Lua 5.4 ported to Rust
Documentation
pub(crate) use self::value::*;

mod value;

/// Key to store value on Lua registry.
///
/// The type itself is a key, not value.
pub trait RegKey<A>: 'static {
    /// Type of the value.
    ///
    /// This can be one of the following type:
    ///
    /// - [bool].
    /// - [i8].
    /// - [i16].
    /// - [i32].
    /// - [i64].
    /// - [u8].
    /// - [u16].
    /// - [u32].
    /// - [f32].
    /// - [f64].
    /// - [Str](crate::Str).
    /// - [Table](crate::Table).
    /// - [LuaFn](crate::LuaFn).
    /// - [UserData](crate::UserData).
    /// - [Thread](crate::Thread).
    /// - [BTreeMap](crate::collections::BTreeMap).
    type Value<'a>
    where
        A: 'a;
}