pub struct BinaryOpNode {
pub kind: BinaryOpKind,
pub left: AstNodeId,
pub right: AstNodeId,
pub span: SourceSpan,
pub flags: OpFlags,
}Expand description
Binary operator expression.
Fields§
§kind: BinaryOpKindOperator kind.
left: AstNodeIdLeft operand.
right: AstNodeIdRight operand.
span: SourceSpanSource location.
flags: OpFlagsOperator flags for optimization hints.
Implementations§
Source§impl BinaryOpNode
impl BinaryOpNode
pub fn new( kind: BinaryOpKind, left: AstNodeId, right: AstNodeId, span: SourceSpan, ) -> Self
Trait Implementations§
Source§impl Clone for BinaryOpNode
impl Clone for BinaryOpNode
Source§fn clone(&self) -> BinaryOpNode
fn clone(&self) -> BinaryOpNode
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 BinaryOpNode
impl RefUnwindSafe for BinaryOpNode
impl Send for BinaryOpNode
impl Sync for BinaryOpNode
impl Unpin for BinaryOpNode
impl UnsafeUnpin for BinaryOpNode
impl UnwindSafe for BinaryOpNode
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