pub struct BinaryExpr {
pub left_operand: Box<Expr>,
pub operator: BinaryOperator,
pub right_operand: Box<Expr>,
}Expand description
A typed Macaulay2 binary_expr syntax node.
Fields§
§left_operand: Box<Expr>The left_operand child of this syntax node.
operator: BinaryOperatorThe operator child of this syntax node.
right_operand: Box<Expr>The right_operand child of this syntax node.
Implementations§
Source§impl BinaryExpr
impl BinaryExpr
Sourcepub fn new(
left_operand: Expr,
operator: BinaryOperator,
right_operand: Expr,
) -> Self
pub fn new( left_operand: Expr, operator: BinaryOperator, right_operand: Expr, ) -> Self
Creates this node from its typed children.
Trait Implementations§
Source§impl Debug for BinaryExpr
impl Debug for BinaryExpr
Source§impl From<BinaryExpr> for AssignmentPackComponent
impl From<BinaryExpr> for AssignmentPackComponent
Source§fn from(value: BinaryExpr) -> Self
fn from(value: BinaryExpr) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpr> for Component
impl From<BinaryExpr> for Component
Source§fn from(value: BinaryExpr) -> Self
fn from(value: BinaryExpr) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpr> for Expr
impl From<BinaryExpr> for Expr
Source§fn from(value: BinaryExpr) -> Self
fn from(value: BinaryExpr) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpr> for OperatorExpr
impl From<BinaryExpr> for OperatorExpr
Source§fn from(value: BinaryExpr) -> Self
fn from(value: BinaryExpr) -> Self
Converts to this type from the input type.
Source§impl Lex for BinaryExpr
impl Lex for BinaryExpr
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for BinaryExprwhere
N: ExternalCstNode,
impl<N> Migrate<N> for BinaryExprwhere
N: ExternalCstNode,
Source§impl PrettyTree for BinaryExpr
impl PrettyTree for BinaryExpr
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for BinaryExpr
impl RefUnwindSafe for BinaryExpr
impl Send for BinaryExpr
impl Sync for BinaryExpr
impl Unpin for BinaryExpr
impl UnsafeUnpin for BinaryExpr
impl UnwindSafe for BinaryExpr
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