pub struct OperatorAssignment {
pub argument_expr: OperatorExpr,
pub operator: _Eql,
pub value_expr: Box<Expr>,
}Expand description
A typed Macaulay2 operator_assignment syntax node.
Fields§
§argument_expr: OperatorExprThe argument_expr child of this syntax node.
operator: _EqlThe operator child of this syntax node.
value_expr: Box<Expr>The value_expr child of this syntax node.
Implementations§
Source§impl OperatorAssignment
impl OperatorAssignment
Sourcepub fn new(
argument_expr: OperatorExpr,
operator: _Eql,
value_expr: Expr,
) -> Self
pub fn new( argument_expr: OperatorExpr, operator: _Eql, value_expr: Expr, ) -> Self
Creates this node from its typed children.
Trait Implementations§
Source§impl Debug for OperatorAssignment
impl Debug for OperatorAssignment
Source§impl From<OperatorAssignment> for Assignment
impl From<OperatorAssignment> for Assignment
Source§fn from(value: OperatorAssignment) -> Self
fn from(value: OperatorAssignment) -> Self
Converts to this type from the input type.
Source§impl From<OperatorAssignment> for Component
impl From<OperatorAssignment> for Component
Source§fn from(value: OperatorAssignment) -> Self
fn from(value: OperatorAssignment) -> Self
Converts to this type from the input type.
Source§impl From<OperatorAssignment> for Expr
impl From<OperatorAssignment> for Expr
Source§fn from(value: OperatorAssignment) -> Self
fn from(value: OperatorAssignment) -> Self
Converts to this type from the input type.
Source§impl Lex for OperatorAssignment
impl Lex for OperatorAssignment
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 OperatorAssignmentwhere
N: ExternalCstNode,
impl<N> Migrate<N> for OperatorAssignmentwhere
N: ExternalCstNode,
Source§impl PrettyTree for OperatorAssignment
impl PrettyTree for OperatorAssignment
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 OperatorAssignment
impl RefUnwindSafe for OperatorAssignment
impl Send for OperatorAssignment
impl Sync for OperatorAssignment
impl Unpin for OperatorAssignment
impl UnsafeUnpin for OperatorAssignment
impl UnwindSafe for OperatorAssignment
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