pub enum LuaVersion {
All,
Lua51,
}
Expand description
The Lua syntax version to use
Variants§
All
Parse all syntax versions at the same time. This allows most general usage. For overlapping syntaxes (e.g., Lua5.2 label syntax and Luau type assertions), select a specific syntax version
Lua51
Parse Lua 5.1 code
Trait Implementations§
Source§impl Clone for LuaVersion
impl Clone for LuaVersion
Source§fn clone(&self) -> LuaVersion
fn clone(&self) -> LuaVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LuaVersion
impl Debug for LuaVersion
Source§impl Default for LuaVersion
impl Default for LuaVersion
Source§fn default() -> LuaVersion
fn default() -> LuaVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LuaVersion
impl<'de> Deserialize<'de> for LuaVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LuaVersion> for LuaVersion
impl From<LuaVersion> for LuaVersion
Source§fn from(val: LuaVersion) -> Self
fn from(val: LuaVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuaVersion
impl PartialEq for LuaVersion
impl Copy for LuaVersion
impl Eq for LuaVersion
impl StructuralPartialEq for LuaVersion
Auto Trait Implementations§
impl Freeze for LuaVersion
impl RefUnwindSafe for LuaVersion
impl Send for LuaVersion
impl Sync for LuaVersion
impl Unpin for LuaVersion
impl UnwindSafe for LuaVersion
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