pub struct Lua54;Expand description
Standard Lua 5.4.
Adds <const> and <close> variable attributes and @ function
attributes over Lua 5.3. Keeps floor division, bitwise operators, and goto.
Trait Implementations§
Source§impl LuaVersion for Lua54
impl LuaVersion for Lua54
Source§const NAME: &'static str = "Lua 5.4"
const NAME: &'static str = "Lua 5.4"
A display name for this version (e.g.
"Lua 5.4", "Luau").Source§const HAS_FLOOR_DIV: bool = true
const HAS_FLOOR_DIV: bool = true
// integer division operator.Source§const HAS_COMPOUND_ASSIGN: bool = false
const HAS_COMPOUND_ASSIGN: bool = false
Compound assignment operators (
+=, -=, etc.).Source§const HAS_CONTINUE: bool = false
const HAS_CONTINUE: bool = false
The
continue keyword inside loops.Source§const HAS_IF_EXPR: bool = false
const HAS_IF_EXPR: bool = false
Inline
if cond then a else b expressions.Source§const HAS_STRING_INTERP: bool = false
const HAS_STRING_INTERP: bool = false
Backtick interpolated strings (
`hello {name}`).Source§const HAS_TYPE_ANNOTATIONS: bool = false
const HAS_TYPE_ANNOTATIONS: bool = false
Type annotations (
: Type, -> ReturnType).Source§const HAS_ATTRIBUTES: bool = true
const HAS_ATTRIBUTES: bool = true
@native and similar function attributes.Source§const HAS_GENERICS: bool = false
const HAS_GENERICS: bool = false
Generic type parameters (
<T>).Source§const HAS_EXPORT: bool = false
const HAS_EXPORT: bool = false
export type declarations.Source§const HAS_BITWISE_OPS: bool = true
const HAS_BITWISE_OPS: bool = true
Bitwise operators (
&, |, ~, <<, >>).Source§const HAS_VARIABLE_ATTRIBUTES: bool = true
const HAS_VARIABLE_ATTRIBUTES: bool = true
<const> and <close> variable attributes (Lua 5.4).impl Copy for Lua54
Auto Trait Implementations§
impl Freeze for Lua54
impl RefUnwindSafe for Lua54
impl Send for Lua54
impl Sync for Lua54
impl Unpin for Lua54
impl UnsafeUnpin for Lua54
impl UnwindSafe for Lua54
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