pub enum Expression {
Show 13 variants
Literal(Literal),
Identifier(String),
MethodCall(MethodCall),
MemberAccess(MemberAccess),
ElementAccess(ElementAccess),
New(NewExpression),
This,
Base,
Binary {
left: Box<Expression>,
op: String,
right: Box<Expression>,
},
Unary {
op: String,
expression: Box<Expression>,
},
Assignment {
left: Box<Expression>,
op: String,
right: Box<Expression>,
},
Await(Box<Expression>),
Query(Box<QueryExpression>),
}Expand description
Expression.
Represents various C# expressions that can be evaluated to a value.
Variants§
Literal(Literal)
Literal.
Identifier(String)
Identifier.
MethodCall(MethodCall)
Method call.
MemberAccess(MemberAccess)
Member access.
ElementAccess(ElementAccess)
Element access.
New(NewExpression)
New expression.
This
This expression.
Base
Base expression.
Binary
Binary expression.
Unary
Unary expression.
Assignment
Assignment expression.
Fields
§
left: Box<Expression>The left-hand side expression.
§
right: Box<Expression>The right-hand side expression.
Await(Box<Expression>)
Await expression.
Query(Box<QueryExpression>)
LINQ query expression.
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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 PartialEq for Expression
impl PartialEq for Expression
Source§impl Serialize for Expression
impl Serialize for Expression
impl StructuralPartialEq 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 UnsafeUnpin 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