pub enum LuaTarget {
Lua51,
LuaJIT,
}Expand description
Target Lua runtime — controls which built-ins and polyfills are assumed available.
Lives in valua-ast (not valua-codegen) so that both valua-lint and
valua-codegen can depend on it without creating a cross-layer coupling.
valua-codegen re-exports this type as pub use valua_ast::LuaTarget.
Variants§
Lua51
Plain Lua 5.1 (PUC reference implementation).
LuaJIT
LuaJIT 2.x — has the bit library and some Lua 5.1 extensions.
Trait Implementations§
impl Copy for LuaTarget
impl Eq for LuaTarget
impl StructuralPartialEq for LuaTarget
Auto Trait Implementations§
impl Freeze for LuaTarget
impl RefUnwindSafe for LuaTarget
impl Send for LuaTarget
impl Sync for LuaTarget
impl Unpin for LuaTarget
impl UnsafeUnpin for LuaTarget
impl UnwindSafe for LuaTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more