pub struct OperatorInstallation {
pub domain_expr: OperatorExpr,
pub assign_op: _ColEql,
pub typical_value: Option<TypeAnnotation>,
pub function: Box<Expr>,
}Expand description
A typed Macaulay2 operator_installation syntax node.
Fields§
§domain_expr: OperatorExprThe domain_expr child of this syntax node.
assign_op: _ColEqlThe assign_op child of this syntax node.
typical_value: Option<TypeAnnotation>The typical_value child of this syntax node.
function: Box<Expr>The function child of this syntax node.
Implementations§
Source§impl OperatorInstallation
impl OperatorInstallation
Sourcepub fn new(
domain_expr: OperatorExpr,
assign_op: _ColEql,
typical_value: Option<TypeAnnotation>,
function: Expr,
) -> Self
pub fn new( domain_expr: OperatorExpr, assign_op: _ColEql, typical_value: Option<TypeAnnotation>, function: Expr, ) -> Self
Creates this node from its typed children.
Trait Implementations§
Source§impl Debug for OperatorInstallation
impl Debug for OperatorInstallation
Source§impl From<OperatorInstallation> for Assignment
impl From<OperatorInstallation> for Assignment
Source§fn from(value: OperatorInstallation) -> Self
fn from(value: OperatorInstallation) -> Self
Converts to this type from the input type.
Source§impl From<OperatorInstallation> for Component
impl From<OperatorInstallation> for Component
Source§fn from(value: OperatorInstallation) -> Self
fn from(value: OperatorInstallation) -> Self
Converts to this type from the input type.
Source§impl From<OperatorInstallation> for Expr
impl From<OperatorInstallation> for Expr
Source§fn from(value: OperatorInstallation) -> Self
fn from(value: OperatorInstallation) -> Self
Converts to this type from the input type.
Source§impl From<OperatorInstallation> for Installation
impl From<OperatorInstallation> for Installation
Source§fn from(value: OperatorInstallation) -> Self
fn from(value: OperatorInstallation) -> Self
Converts to this type from the input type.
Source§impl Lex for OperatorInstallation
impl Lex for OperatorInstallation
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 OperatorInstallationwhere
N: ExternalCstNode,
impl<N> Migrate<N> for OperatorInstallationwhere
N: ExternalCstNode,
Source§impl PrettyTree for OperatorInstallation
impl PrettyTree for OperatorInstallation
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 OperatorInstallation
impl RefUnwindSafe for OperatorInstallation
impl Send for OperatorInstallation
impl Sync for OperatorInstallation
impl Unpin for OperatorInstallation
impl UnsafeUnpin for OperatorInstallation
impl UnwindSafe for OperatorInstallation
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