pub struct PostfixExpr {
pub operand: Box<Expr>,
pub operator: PostfixOperator,
}Expand description
A typed Macaulay2 postfix_expr syntax node.
Fields§
§operand: Box<Expr>The operand child of this syntax node.
operator: PostfixOperatorThe operator child of this syntax node.
Implementations§
Source§impl PostfixExpr
impl PostfixExpr
Sourcepub fn new(operand: Expr, operator: PostfixOperator) -> Self
pub fn new(operand: Expr, operator: PostfixOperator) -> Self
Creates this node from its typed children.
Trait Implementations§
Source§impl Debug for PostfixExpr
impl Debug for PostfixExpr
Source§impl From<PostfixExpr> for AssignmentPackComponent
impl From<PostfixExpr> for AssignmentPackComponent
Source§fn from(value: PostfixExpr) -> Self
fn from(value: PostfixExpr) -> Self
Converts to this type from the input type.
Source§impl From<PostfixExpr> for Component
impl From<PostfixExpr> for Component
Source§fn from(value: PostfixExpr) -> Self
fn from(value: PostfixExpr) -> Self
Converts to this type from the input type.
Source§impl From<PostfixExpr> for Expr
impl From<PostfixExpr> for Expr
Source§fn from(value: PostfixExpr) -> Self
fn from(value: PostfixExpr) -> Self
Converts to this type from the input type.
Source§impl From<PostfixExpr> for OperatorExpr
impl From<PostfixExpr> for OperatorExpr
Source§fn from(value: PostfixExpr) -> Self
fn from(value: PostfixExpr) -> Self
Converts to this type from the input type.
Source§impl Lex for PostfixExpr
impl Lex for PostfixExpr
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 PrettyTree for PostfixExpr
impl PrettyTree for PostfixExpr
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for PostfixExprwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for PostfixExprwhere
N: ExternalCstNode,
Auto Trait Implementations§
impl Freeze for PostfixExpr
impl RefUnwindSafe for PostfixExpr
impl Send for PostfixExpr
impl Sync for PostfixExpr
impl Unpin for PostfixExpr
impl UnsafeUnpin for PostfixExpr
impl UnwindSafe for PostfixExpr
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