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