pub enum LuaStatement {
Local(LuaLocalStatement),
Assignment(LuaAssignmentStatement),
Expression(LuaExpression),
Return(LuaReturnStatement),
}Expand description
Lua 语句
Variants§
Local(LuaLocalStatement)
Assignment(LuaAssignmentStatement)
Expression(LuaExpression)
Return(LuaReturnStatement)
Trait Implementations§
Source§impl Clone for LuaStatement
impl Clone for LuaStatement
Source§fn clone(&self) -> LuaStatement
fn clone(&self) -> LuaStatement
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 LuaStatement
impl Debug for LuaStatement
Source§impl<'de> Deserialize<'de> for LuaStatement
impl<'de> Deserialize<'de> for LuaStatement
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 Serialize for LuaStatement
impl Serialize for LuaStatement
Source§impl ToSource for LuaStatement
impl ToSource for LuaStatement
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for LuaStatement
impl RefUnwindSafe for LuaStatement
impl Send for LuaStatement
impl Sync for LuaStatement
impl Unpin for LuaStatement
impl UnwindSafe for LuaStatement
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