pub enum LuaTableField {
ArrayItem(LuaExpr),
NamedField(String, LuaExpr),
IndexedField(LuaExpr, LuaExpr),
}Expand description
A single field in a Lua table constructor.
Variants§
ArrayItem(LuaExpr)
Positional element: expr (auto-indexed)
NamedField(String, LuaExpr)
Named field: key = expr
IndexedField(LuaExpr, LuaExpr)
Computed-key field: [key_expr] = expr
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 Display for LuaTableField
impl Display for LuaTableField
Source§impl PartialEq for LuaTableField
impl PartialEq for LuaTableField
impl StructuralPartialEq for LuaTableField
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