pub struct SourceFile {
pub cells: Vec<Cell>,
pub eof: Eof,
}Expand description
A typed Macaulay2 source_file syntax node.
Fields§
§cells: Vec<Cell>The cells child of this syntax node.
eof: EofThe eof child of this syntax node.
Implementations§
Trait Implementations§
Source§impl AsMut<SourceFile> for ParsedFile
impl AsMut<SourceFile> for ParsedFile
Source§fn as_mut(&mut self) -> &mut SourceFile
fn as_mut(&mut self) -> &mut SourceFile
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<SourceFile> for ParsedFile
impl AsRef<SourceFile> for ParsedFile
Source§fn as_ref(&self) -> &SourceFile
fn as_ref(&self) -> &SourceFile
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for SourceFile
impl Debug for SourceFile
Source§impl Lex for SourceFile
impl Lex for SourceFile
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 Parse for SourceFile
impl Parse for SourceFile
Source§fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Consumes this value from
input. Read moreSource§impl PrettyTree for SourceFile
impl PrettyTree for SourceFile
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 SourceFilewhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for SourceFilewhere
N: ExternalCstNode,
Auto Trait Implementations§
impl Freeze for SourceFile
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnsafeUnpin for SourceFile
impl UnwindSafe for SourceFile
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