#[non_exhaustive]pub enum Expression {
Show 13 variants
Env,
Variadic,
Nil,
Boolean(bool),
Numeric(IntOrFloat),
String(Vec<u8>),
LocalVariable(ExprLocalVariable),
TableIndex(ExprTableIndex),
Binary(ExprBinary),
Unary(ExprUnary),
TableConstructor(ExprTableConstructor),
FunctionCall(ExprFunctionCall),
FunctionObject(ExprFunctionObject),
}Expand description
lua value & expression
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Env
_ENV
Variadic
Nil
Boolean(bool)
Numeric(IntOrFloat)
String(Vec<u8>)
LocalVariable(ExprLocalVariable)
load from stack
TableIndex(ExprTableIndex)
table[index].
Binary(ExprBinary)
binary operation. lhs OP rhs
Unary(ExprUnary)
unary operation. OP x
TableConstructor(ExprTableConstructor)
table constructor
FunctionCall(ExprFunctionCall)
function call.
prefix(args) or prefix:method(args)
FunctionObject(ExprFunctionObject)
function object constructor
Trait Implementations§
source§impl Clone for Expression
impl Clone for Expression
source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy 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 Expression
impl Debug for Expression
source§impl From<()> for Expression
impl From<()> for Expression
source§impl From<IntOrFloat> for Expression
impl From<IntOrFloat> for Expression
source§fn from(value: IntOrFloat) -> Self
fn from(value: IntOrFloat) -> Self
Converts to this type from the input type.
source§impl From<String> for Expression
impl From<String> for Expression
source§impl From<bool> for Expression
impl From<bool> for Expression
source§impl From<f64> for Expression
impl From<f64> for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)