pub struct UnaryExprNode {
pub parent: Option<NodeId>,
pub children: Vec<NodeId>,
pub operator: Option<UnaryOp>,
pub begin_token: TokenId,
pub end_token: TokenId,
}Expand description
AST node for unaryExpr production
Fields§
§parent: Option<NodeId>Parent node (if any)
children: Vec<NodeId>Child nodes
operator: Option<UnaryOp>Prefix unary operator (if any)
begin_token: TokenIdFirst token of this node
end_token: TokenIdLast token of this node
Implementations§
Trait Implementations§
Source§impl Clone for UnaryExprNode
impl Clone for UnaryExprNode
Source§fn clone(&self) -> UnaryExprNode
fn clone(&self) -> UnaryExprNode
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for UnaryExprNode
impl RefUnwindSafe for UnaryExprNode
impl Send for UnaryExprNode
impl Sync for UnaryExprNode
impl Unpin for UnaryExprNode
impl UnsafeUnpin for UnaryExprNode
impl UnwindSafe for UnaryExprNode
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