pub enum Expression {
Show 14 variants
Assignment(Assignment),
BinaryOperation(BinaryOperation),
Conditional(Conditional),
ElementaryTypeNameExpression(ElementaryTypeNameExpression),
FunctionCall(FunctionCall),
FunctionCallOptions(FunctionCallOptions),
Identifier(Identifier),
IndexAccess(IndexAccess),
IndexRangeAccess(IndexRangeAccess),
Literal(Literal),
MemberAccess(MemberAccess),
NewExpression(NewExpression),
TupleExpression(TupleExpression),
UnaryOperation(UnaryOperation),
}
Expand description
Expression
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/Assignment"
},
{
"$ref": "#/definitions/BinaryOperation"
},
{
"$ref": "#/definitions/Conditional"
},
{
"$ref": "#/definitions/ElementaryTypeNameExpression"
},
{
"$ref": "#/definitions/FunctionCall"
},
{
"$ref": "#/definitions/FunctionCallOptions"
},
{
"$ref": "#/definitions/Identifier"
},
{
"$ref": "#/definitions/IndexAccess"
},
{
"$ref": "#/definitions/IndexRangeAccess"
},
{
"$ref": "#/definitions/Literal"
},
{
"$ref": "#/definitions/MemberAccess"
},
{
"$ref": "#/definitions/NewExpression"
},
{
"$ref": "#/definitions/TupleExpression"
},
{
"$ref": "#/definitions/UnaryOperation"
}
]
}
Variants§
Assignment(Assignment)
BinaryOperation(BinaryOperation)
Conditional(Conditional)
ElementaryTypeNameExpression(ElementaryTypeNameExpression)
FunctionCall(FunctionCall)
FunctionCallOptions(FunctionCallOptions)
Identifier(Identifier)
IndexAccess(IndexAccess)
IndexRangeAccess(IndexRangeAccess)
Literal(Literal)
MemberAccess(MemberAccess)
NewExpression(NewExpression)
TupleExpression(TupleExpression)
UnaryOperation(UnaryOperation)
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<'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 From<&Expression> for Expression
impl From<&Expression> for Expression
Source§fn from(value: &Expression) -> Self
fn from(value: &Expression) -> Self
Converts to this type from the input type.
Source§impl From<Assignment> for Expression
impl From<Assignment> for Expression
Source§fn from(value: Assignment) -> Self
fn from(value: Assignment) -> Self
Converts to this type from the input type.
Source§impl From<BinaryOperation> for Expression
impl From<BinaryOperation> for Expression
Source§fn from(value: BinaryOperation) -> Self
fn from(value: BinaryOperation) -> Self
Converts to this type from the input type.
Source§impl From<Conditional> for Expression
impl From<Conditional> for Expression
Source§fn from(value: Conditional) -> Self
fn from(value: Conditional) -> Self
Converts to this type from the input type.
Source§impl From<ElementaryTypeNameExpression> for Expression
impl From<ElementaryTypeNameExpression> for Expression
Source§fn from(value: ElementaryTypeNameExpression) -> Self
fn from(value: ElementaryTypeNameExpression) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCall> for Expression
impl From<FunctionCall> for Expression
Source§fn from(value: FunctionCall) -> Self
fn from(value: FunctionCall) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCallOptions> for Expression
impl From<FunctionCallOptions> for Expression
Source§fn from(value: FunctionCallOptions) -> Self
fn from(value: FunctionCallOptions) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for Expression
impl From<Identifier> for Expression
Source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
Source§impl From<IndexAccess> for Expression
impl From<IndexAccess> for Expression
Source§fn from(value: IndexAccess) -> Self
fn from(value: IndexAccess) -> Self
Converts to this type from the input type.
Source§impl From<IndexRangeAccess> for Expression
impl From<IndexRangeAccess> for Expression
Source§fn from(value: IndexRangeAccess) -> Self
fn from(value: IndexRangeAccess) -> Self
Converts to this type from the input type.
Source§impl From<Literal> for Expression
impl From<Literal> for Expression
Source§impl From<MemberAccess> for Expression
impl From<MemberAccess> for Expression
Source§fn from(value: MemberAccess) -> Self
fn from(value: MemberAccess) -> Self
Converts to this type from the input type.
Source§impl From<NewExpression> for Expression
impl From<NewExpression> for Expression
Source§fn from(value: NewExpression) -> Self
fn from(value: NewExpression) -> Self
Converts to this type from the input type.
Source§impl From<TupleExpression> for Expression
impl From<TupleExpression> for Expression
Source§fn from(value: TupleExpression) -> Self
fn from(value: TupleExpression) -> Self
Converts to this type from the input type.
Source§impl From<UnaryOperation> for Expression
impl From<UnaryOperation> for Expression
Source§fn from(value: UnaryOperation) -> Self
fn from(value: UnaryOperation) -> Self
Converts to this type from the input type.
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