pub struct ReturnExpr {
pub return_token: _Return,
pub value: Option<Box<Expr>>,
}Expand description
A typed Macaulay2 return_expr syntax node.
Fields§
§return_token: _ReturnThe return_token child of this syntax node.
value: Option<Box<Expr>>The value child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Debug for ReturnExpr
impl Debug for ReturnExpr
Source§impl From<ReturnExpr> for Component
impl From<ReturnExpr> for Component
Source§fn from(value: ReturnExpr) -> Self
fn from(value: ReturnExpr) -> Self
Converts to this type from the input type.
Source§impl From<ReturnExpr> for ControlFlow
impl From<ReturnExpr> for ControlFlow
Source§fn from(value: ReturnExpr) -> Self
fn from(value: ReturnExpr) -> Self
Converts to this type from the input type.
Source§impl From<ReturnExpr> for Expr
impl From<ReturnExpr> for Expr
Source§fn from(value: ReturnExpr) -> Self
fn from(value: ReturnExpr) -> Self
Converts to this type from the input type.
Source§impl Lex for ReturnExpr
impl Lex for ReturnExpr
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 ReturnExprwhere
N: ExternalCstNode,
impl<N> Migrate<N> for ReturnExprwhere
N: ExternalCstNode,
Source§impl PrettyTree for ReturnExpr
impl PrettyTree for ReturnExpr
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 ReturnExpr
impl RefUnwindSafe for ReturnExpr
impl Send for ReturnExpr
impl Sync for ReturnExpr
impl Unpin for ReturnExpr
impl UnsafeUnpin for ReturnExpr
impl UnwindSafe for ReturnExpr
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