Enum darklua_core::nodes::Expression
source · [−]pub enum Expression {
Show 16 variants
Binary(Box<BinaryExpression>),
Call(Box<FunctionCall>),
False(Option<Token>),
Field(Box<FieldExpression>),
Function(FunctionExpression),
Identifier(Identifier),
If(Box<IfExpression>),
Index(Box<IndexExpression>),
Nil(Option<Token>),
Number(NumberExpression),
Parenthese(Box<ParentheseExpression>),
String(StringExpression),
Table(TableExpression),
True(Option<Token>),
Unary(Box<UnaryExpression>),
VariableArguments(Option<Token>),
}Variants
Binary(Box<BinaryExpression>)
Call(Box<FunctionCall>)
False(Option<Token>)
Field(Box<FieldExpression>)
Function(FunctionExpression)
Identifier(Identifier)
If(Box<IfExpression>)
Index(Box<IndexExpression>)
Nil(Option<Token>)
Number(NumberExpression)
Parenthese(Box<ParentheseExpression>)
String(StringExpression)
Table(TableExpression)
True(Option<Token>)
Unary(Box<UnaryExpression>)
VariableArguments(Option<Token>)
Implementations
sourceimpl Expression
impl Expression
pub fn nil() -> Self
pub fn variable_arguments() -> Self
pub fn identifier<S: Into<Identifier>>(identifier: S) -> Self
pub fn in_parentheses(self) -> Self
Trait Implementations
sourceimpl Clone for Expression
impl Clone for Expression
sourcefn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Expression
impl Debug for Expression
sourceimpl From<BinaryExpression> for Expression
impl From<BinaryExpression> for Expression
sourcefn from(binary: BinaryExpression) -> Expression
fn from(binary: BinaryExpression) -> Expression
Converts to this type from the input type.
sourceimpl From<BinaryNumber> for Expression
impl From<BinaryNumber> for Expression
sourcefn from(number: BinaryNumber) -> Self
fn from(number: BinaryNumber) -> Self
Converts to this type from the input type.
sourceimpl From<DecimalNumber> for Expression
impl From<DecimalNumber> for Expression
sourcefn from(number: DecimalNumber) -> Self
fn from(number: DecimalNumber) -> Self
Converts to this type from the input type.
sourceimpl From<FieldExpression> for Expression
impl From<FieldExpression> for Expression
sourcefn from(field: FieldExpression) -> Expression
fn from(field: FieldExpression) -> Expression
Converts to this type from the input type.
sourceimpl From<FunctionCall> for Expression
impl From<FunctionCall> for Expression
sourcefn from(call: FunctionCall) -> Expression
fn from(call: FunctionCall) -> Expression
Converts to this type from the input type.
sourceimpl From<FunctionExpression> for Expression
impl From<FunctionExpression> for Expression
sourcefn from(function: FunctionExpression) -> Self
fn from(function: FunctionExpression) -> Self
Converts to this type from the input type.
sourceimpl From<HexNumber> for Expression
impl From<HexNumber> for Expression
sourceimpl From<Identifier> for Expression
impl From<Identifier> for Expression
sourcefn from(identifier: Identifier) -> Self
fn from(identifier: Identifier) -> Self
Converts to this type from the input type.
sourceimpl From<IfExpression> for Expression
impl From<IfExpression> for Expression
sourcefn from(if_expression: IfExpression) -> Expression
fn from(if_expression: IfExpression) -> Expression
Converts to this type from the input type.
sourceimpl From<IndexExpression> for Expression
impl From<IndexExpression> for Expression
sourcefn from(index: IndexExpression) -> Self
fn from(index: IndexExpression) -> Self
Converts to this type from the input type.
sourceimpl From<NumberExpression> for Expression
impl From<NumberExpression> for Expression
sourcefn from(number: NumberExpression) -> Self
fn from(number: NumberExpression) -> Self
Converts to this type from the input type.
sourceimpl From<ParentheseExpression> for Expression
impl From<ParentheseExpression> for Expression
sourcefn from(expression: ParentheseExpression) -> Self
fn from(expression: ParentheseExpression) -> Self
Converts to this type from the input type.
sourceimpl From<Prefix> for Expression
impl From<Prefix> for Expression
sourceimpl From<StringExpression> for Expression
impl From<StringExpression> for Expression
sourcefn from(string: StringExpression) -> Self
fn from(string: StringExpression) -> Self
Converts to this type from the input type.
sourceimpl From<TableExpression> for Expression
impl From<TableExpression> for Expression
sourcefn from(table: TableExpression) -> Self
fn from(table: TableExpression) -> Self
Converts to this type from the input type.
sourceimpl From<UnaryExpression> for Expression
impl From<UnaryExpression> for Expression
sourcefn from(unary: UnaryExpression) -> Self
fn from(unary: UnaryExpression) -> Self
Converts to this type from the input type.
sourceimpl From<Variable> for Expression
impl From<Variable> for Expression
sourceimpl From<bool> for Expression
impl From<bool> for Expression
sourcefn from(boolean: bool) -> Expression
fn from(boolean: bool) -> Expression
Converts to this type from the input type.
sourceimpl From<f64> for Expression
impl From<f64> for Expression
sourcefn from(value: f64) -> Expression
fn from(value: f64) -> Expression
Converts to this type from the input type.
sourceimpl PartialEq<Expression> for Expression
impl PartialEq<Expression> for Expression
sourcefn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Expression) -> bool
fn ne(&self, other: &Expression) -> bool
This method tests for !=.
impl Eq for Expression
impl StructuralEq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more