pub struct WhenExprNode {
pub value: Option<NodeId>,
pub branches: NodeArrayId,
pub else_branch: Option<NodeId>,
pub span: SourceSpan,
}Expand description
When expression: when ( value )? { branch* ( else => expression )? }
Fields§
§value: Option<NodeId>§branches: NodeArrayId§else_branch: Option<NodeId>§span: SourceSpanTrait Implementations§
Source§impl Clone for WhenExprNode
impl Clone for WhenExprNode
impl Copy for WhenExprNode
Source§impl Debug for WhenExprNode
impl Debug for WhenExprNode
Source§impl PartialEq for WhenExprNode
impl PartialEq for WhenExprNode
impl StructuralPartialEq for WhenExprNode
Auto Trait Implementations§
impl Freeze for WhenExprNode
impl RefUnwindSafe for WhenExprNode
impl Send for WhenExprNode
impl Sync for WhenExprNode
impl Unpin for WhenExprNode
impl UnsafeUnpin for WhenExprNode
impl UnwindSafe for WhenExprNode
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