pub struct OptionExpression {
pub key: Box<Expr>,
pub operator: _EqlGst,
pub value: Box<Expr>,
}Expand description
A typed Macaulay2 option_expression syntax node.
Fields§
§key: Box<Expr>The key child of this syntax node.
operator: _EqlGstThe operator child of this syntax node.
value: Box<Expr>The value child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Debug for OptionExpression
impl Debug for OptionExpression
Source§impl From<OptionExpression> for Component
impl From<OptionExpression> for Component
Source§fn from(value: OptionExpression) -> Self
fn from(value: OptionExpression) -> Self
Converts to this type from the input type.
Source§impl From<OptionExpression> for Expr
impl From<OptionExpression> for Expr
Source§fn from(value: OptionExpression) -> Self
fn from(value: OptionExpression) -> Self
Converts to this type from the input type.
Source§impl Lex for OptionExpression
impl Lex for OptionExpression
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 PrettyTree for OptionExpression
impl PrettyTree for OptionExpression
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for OptionExpressionwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for OptionExpressionwhere
N: ExternalCstNode,
Auto Trait Implementations§
impl Freeze for OptionExpression
impl RefUnwindSafe for OptionExpression
impl Send for OptionExpression
impl Sync for OptionExpression
impl Unpin for OptionExpression
impl UnsafeUnpin for OptionExpression
impl UnwindSafe for OptionExpression
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