pub enum LuaTableField {
Keyed {
key: LuaExpression,
value: LuaExpression,
},
Named {
name: String,
value: LuaExpression,
},
List {
value: LuaExpression,
},
}Expand description
A field in a Lua table constructor.
Variants§
Keyed
A keyed field: [key] = value.
Named
A named field: name = value.
List
A list field: value.
Fields
§
value: LuaExpressionThe value expression.
Trait Implementations§
Source§impl Clone for LuaTableField
impl Clone for LuaTableField
Source§fn clone(&self) -> LuaTableField
fn clone(&self) -> LuaTableField
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 LuaTableField
impl Debug for LuaTableField
Source§impl<'de> Deserialize<'de> for LuaTableField
impl<'de> Deserialize<'de> for LuaTableField
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 LuaTableField
impl Serialize for LuaTableField
Source§impl ToSource for LuaTableField
impl ToSource for LuaTableField
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 LuaTableField
impl RefUnwindSafe for LuaTableField
impl Send for LuaTableField
impl Sync for LuaTableField
impl Unpin for LuaTableField
impl UnsafeUnpin for LuaTableField
impl UnwindSafe for LuaTableField
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