pub struct ElseClause {
pub else_token: _Else,
pub expr: Box<Expr>,
}Expand description
A typed Macaulay2 else_clause syntax node.
Fields§
§else_token: _ElseThe else_token child of this syntax node.
expr: Box<Expr>The expr child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Debug for ElseClause
impl Debug for ElseClause
Source§impl From<ElseClause> for TryFallback
impl From<ElseClause> for TryFallback
Source§fn from(value: ElseClause) -> Self
fn from(value: ElseClause) -> Self
Converts to this type from the input type.
Source§impl Lex for ElseClause
impl Lex for ElseClause
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 ElseClausewhere
N: ExternalCstNode,
impl<N> Migrate<N> for ElseClausewhere
N: ExternalCstNode,
Source§impl PrettyTree for ElseClause
impl PrettyTree for ElseClause
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 ElseClause
impl RefUnwindSafe for ElseClause
impl Send for ElseClause
impl Sync for ElseClause
impl Unpin for ElseClause
impl UnsafeUnpin for ElseClause
impl UnwindSafe for ElseClause
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