pub struct WhenCondition {
pub when_token: _When,
pub condition: Box<Expr>,
}Expand description
A typed Macaulay2 when_condition syntax node.
Fields§
§when_token: _WhenThe when_token child of this syntax node.
condition: Box<Expr>The condition child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Debug for WhenCondition
impl Debug for WhenCondition
Source§impl Lex for WhenCondition
impl Lex for WhenCondition
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 WhenConditionwhere
N: ExternalCstNode,
impl<N> Migrate<N> for WhenConditionwhere
N: ExternalCstNode,
Source§impl PrettyTree for WhenCondition
impl PrettyTree for WhenCondition
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 WhenCondition
impl RefUnwindSafe for WhenCondition
impl Send for WhenCondition
impl Sync for WhenCondition
impl Unpin for WhenCondition
impl UnsafeUnpin for WhenCondition
impl UnwindSafe for WhenCondition
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