pub struct UnaryOpNode {
pub kind: UnaryOpKind,
pub operand: AstNodeId,
pub span: SourceSpan,
}Expand description
Unary operator expression.
Fields§
§kind: UnaryOpKindOperator kind.
operand: AstNodeIdOperand expression.
span: SourceSpanSource location.
Implementations§
Source§impl UnaryOpNode
impl UnaryOpNode
pub fn new(kind: UnaryOpKind, operand: AstNodeId, span: SourceSpan) -> Self
Trait Implementations§
Source§impl Clone for UnaryOpNode
impl Clone for UnaryOpNode
Source§fn clone(&self) -> UnaryOpNode
fn clone(&self) -> UnaryOpNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnaryOpNode
impl RefUnwindSafe for UnaryOpNode
impl Send for UnaryOpNode
impl Sync for UnaryOpNode
impl Unpin for UnaryOpNode
impl UnsafeUnpin for UnaryOpNode
impl UnwindSafe for UnaryOpNode
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