pub struct LambdaExpression {
pub parameters: LambdaParameters,
pub operator: _SubGst,
pub body: Box<Expr>,
}Expand description
A typed Macaulay2 lambda_expression syntax node.
Fields§
§parameters: LambdaParametersThe parameters child of this syntax node.
operator: _SubGstThe operator child of this syntax node.
body: Box<Expr>The body child of this syntax node.
Implementations§
Source§impl LambdaExpression
impl LambdaExpression
Sourcepub fn new(parameters: LambdaParameters, operator: _SubGst, body: Expr) -> Self
pub fn new(parameters: LambdaParameters, operator: _SubGst, body: Expr) -> Self
Creates this node from its typed children.
Trait Implementations§
Source§impl Debug for LambdaExpression
impl Debug for LambdaExpression
Source§impl From<LambdaExpression> for Component
impl From<LambdaExpression> for Component
Source§fn from(value: LambdaExpression) -> Self
fn from(value: LambdaExpression) -> Self
Converts to this type from the input type.
Source§impl From<LambdaExpression> for Expr
impl From<LambdaExpression> for Expr
Source§fn from(value: LambdaExpression) -> Self
fn from(value: LambdaExpression) -> Self
Converts to this type from the input type.
Source§impl Lex for LambdaExpression
impl Lex for LambdaExpression
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 LambdaExpressionwhere
N: ExternalCstNode,
impl<N> Migrate<N> for LambdaExpressionwhere
N: ExternalCstNode,
Source§impl PrettyTree for LambdaExpression
impl PrettyTree for LambdaExpression
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 LambdaExpression
impl RefUnwindSafe for LambdaExpression
impl Send for LambdaExpression
impl Sync for LambdaExpression
impl Unpin for LambdaExpression
impl UnsafeUnpin for LambdaExpression
impl UnwindSafe for LambdaExpression
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