pub enum ExprKind {
Literal(LiteralNode),
Assignable(AssignableKind),
BinOp(BinaryOperationNode),
UnaryOp(UnaryOperationNode),
FunctionCall(FunctionCallNode),
}
Expand description
Represents an expression node in the AST.
Variants§
Literal(LiteralNode)
Represents a literal node in the AST.
Assignable(AssignableKind)
Represents an assignable expression node in the AST.
BinOp(BinaryOperationNode)
Represents a binary operation node in the AST.
UnaryOp(UnaryOperationNode)
Represents a unary operation node in the AST.
FunctionCall(FunctionCallNode)
Represents a function call node in the AST.
Trait Implementations§
Source§impl AstVisitable for ExprKind
impl AstVisitable for ExprKind
Source§impl<'de> Deserialize<'de> for ExprKind
impl<'de> Deserialize<'de> for ExprKind
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<AssignableKind> for Box<ExprKind>
impl From<AssignableKind> for Box<ExprKind>
Source§fn from(id: AssignableKind) -> Self
fn from(id: AssignableKind) -> Self
Converts to this type from the input type.
Source§impl From<AssignableKind> for ExprKind
impl From<AssignableKind> for ExprKind
Source§fn from(id: AssignableKind) -> Self
fn from(id: AssignableKind) -> Self
Converts to this type from the input type.
Source§impl From<BinaryOperationNode> for Box<ExprKind>
impl From<BinaryOperationNode> for Box<ExprKind>
Source§fn from(id: BinaryOperationNode) -> Self
fn from(id: BinaryOperationNode) -> Self
Converts to this type from the input type.
Source§impl From<BinaryOperationNode> for ExprKind
impl From<BinaryOperationNode> for ExprKind
Source§fn from(id: BinaryOperationNode) -> Self
fn from(id: BinaryOperationNode) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCallNode> for Box<ExprKind>
impl From<FunctionCallNode> for Box<ExprKind>
Source§fn from(id: FunctionCallNode) -> Self
fn from(id: FunctionCallNode) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCallNode> for ExprKind
impl From<FunctionCallNode> for ExprKind
Source§fn from(id: FunctionCallNode) -> Self
fn from(id: FunctionCallNode) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierNode> for Box<ExprKind>
impl From<IdentifierNode> for Box<ExprKind>
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierNode> for ExprKind
impl From<IdentifierNode> for ExprKind
Source§fn from(id: IdentifierNode) -> Self
fn from(id: IdentifierNode) -> Self
Converts to this type from the input type.
Source§impl From<LiteralNode> for Box<ExprKind>
impl From<LiteralNode> for Box<ExprKind>
Source§fn from(id: LiteralNode) -> Self
fn from(id: LiteralNode) -> Self
Converts to this type from the input type.
Source§impl From<LiteralNode> for ExprKind
impl From<LiteralNode> for ExprKind
Source§fn from(id: LiteralNode) -> Self
fn from(id: LiteralNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for Box<ExprKind>
impl From<MemberAccessNode> for Box<ExprKind>
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for ExprKind
impl From<MemberAccessNode> for ExprKind
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<UnaryOperationNode> for Box<ExprKind>
impl From<UnaryOperationNode> for Box<ExprKind>
Source§fn from(id: UnaryOperationNode) -> Self
fn from(id: UnaryOperationNode) -> Self
Converts to this type from the input type.
Source§impl From<UnaryOperationNode> for ExprKind
impl From<UnaryOperationNode> for ExprKind
Source§fn from(id: UnaryOperationNode) -> Self
fn from(id: UnaryOperationNode) -> Self
Converts to this type from the input type.
impl Eq for ExprKind
Auto Trait Implementations§
impl Freeze for ExprKind
impl RefUnwindSafe for ExprKind
impl Send for ExprKind
impl Sync for ExprKind
impl Unpin for ExprKind
impl UnwindSafe for ExprKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.