pub struct IfExpr(/* private fields */);Expand description
IF c THEN a ELSE b.
Implementations§
Trait Implementations§
Source§impl AstNode for IfExpr
impl AstNode for IfExpr
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Whether nodes of
kind can be wrapped.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Wraps
node if it has the right kind.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying node.
impl Eq for IfExpr
impl StructuralPartialEq for IfExpr
Auto Trait Implementations§
impl !RefUnwindSafe for IfExpr
impl !Send for IfExpr
impl !Sync for IfExpr
impl !UnwindSafe for IfExpr
impl Forget for IfExpr
impl Freeze for IfExpr
impl Move for IfExpr
impl Unpin for IfExpr
impl UnsafeUnpin for IfExpr
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