pub struct NewStatement {
pub new_token: _New,
pub class: Box<Expr>,
pub parent_class: Option<OfClass>,
pub instance: Option<FromInstance>,
}Expand description
A typed Macaulay2 new_statement syntax node.
Fields§
§new_token: _NewThe new_token child of this syntax node.
class: Box<Expr>The class child of this syntax node.
parent_class: Option<OfClass>The parent_class child of this syntax node.
instance: Option<FromInstance>The instance child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Debug for NewStatement
impl Debug for NewStatement
Source§impl From<NewStatement> for Component
impl From<NewStatement> for Component
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl From<NewStatement> for Expr
impl From<NewStatement> for Expr
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl Lex for NewStatement
impl Lex for NewStatement
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 NewStatementwhere
N: ExternalCstNode,
impl<N> Migrate<N> for NewStatementwhere
N: ExternalCstNode,
Source§impl PrettyTree for NewStatement
impl PrettyTree for NewStatement
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 NewStatement
impl RefUnwindSafe for NewStatement
impl Send for NewStatement
impl Sync for NewStatement
impl Unpin for NewStatement
impl UnsafeUnpin for NewStatement
impl UnwindSafe for NewStatement
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