pub struct List {
pub statements: Vec<Statement>,
pub elements: Option<ExprPack>,
pub delimiter: _BraceDelimiter,
}Expand description
A typed Macaulay2 list syntax node.
Fields§
§statements: Vec<Statement>The statements child of this syntax node.
elements: Option<ExprPack>The elements child of this syntax node.
delimiter: _BraceDelimiterThe paired delimiter surrounding this node.
Implementations§
Trait Implementations§
Source§impl From<List> for Collection
impl From<List> for Collection
Source§impl Lex for List
impl Lex for List
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 List
impl PrettyTree for List
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 Listwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for Listwhere
N: ExternalCstNode,
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnsafeUnpin for List
impl UnwindSafe for List
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