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