pub struct Lua52;Expand description
Standard Lua 5.2.
Adds goto and ::label:: over Lua 5.1. No floor division,
no compound assignment, no bitwise operators.
Trait Implementations§
Source§impl LuaVersion for Lua52
impl LuaVersion for Lua52
Source§const NAME: &'static str = "Lua 5.2"
const NAME: &'static str = "Lua 5.2"
A display name for this version (e.g.
"Lua 5.4", "Luau").Source§const HAS_FLOOR_DIV: bool = false
const HAS_FLOOR_DIV: bool = false
// 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 = false
const HAS_ATTRIBUTES: bool = false
@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 = false
const HAS_BITWISE_OPS: bool = false
Bitwise operators (
&, |, ~, <<, >>).Source§const HAS_VARIABLE_ATTRIBUTES: bool = false
const HAS_VARIABLE_ATTRIBUTES: bool = false
<const> and <close> variable attributes (Lua 5.4).impl Copy for Lua52
Auto Trait Implementations§
impl Freeze for Lua52
impl RefUnwindSafe for Lua52
impl Send for Lua52
impl Sync for Lua52
impl Unpin for Lua52
impl UnsafeUnpin for Lua52
impl UnwindSafe for Lua52
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