pub enum Expr {
Binary(BinaryExpr),
Prefix(PrefixExpr),
Member(MemberExpr),
Path(PathExpr),
Paren(ParenExpr),
Literal(LiteralExpr),
}Expand description
One expression of the guaranteed subset — the Expr alternation
(expr-core specification §3.1, ridl reference §13, epic E2.4).
Variants§
Binary(BinaryExpr)
Prefix(PrefixExpr)
Member(MemberExpr)
Path(PathExpr)
Paren(ParenExpr)
Literal(LiteralExpr)
Trait Implementations§
Source§impl AstNode for Expr
impl AstNode for Expr
Source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Wraps
syntax if its kind matches this type; None otherwise.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying untyped node.
impl Eq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl !RefUnwindSafe for Expr
impl !Send for Expr
impl !Sync for Expr
impl !UnwindSafe for Expr
impl Freeze for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
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