pub enum LuaExpression {
Identifier(String),
Number(f64),
String(String),
Boolean(bool),
Nil,
Binary(Box<LuaBinaryExpression>),
}Expand description
Lua 表达式
Variants§
Trait Implementations§
Source§impl Clone for LuaExpression
impl Clone for LuaExpression
Source§fn clone(&self) -> LuaExpression
fn clone(&self) -> LuaExpression
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 LuaExpression
impl Debug for LuaExpression
Source§impl<'de> Deserialize<'de> for LuaExpression
impl<'de> Deserialize<'de> for LuaExpression
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 LuaExpression
impl Serialize for LuaExpression
Source§impl ToSource for LuaExpression
impl ToSource for LuaExpression
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 LuaExpression
impl RefUnwindSafe for LuaExpression
impl Send for LuaExpression
impl Sync for LuaExpression
impl Unpin for LuaExpression
impl UnwindSafe for LuaExpression
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