pub struct SourceFile {
pub cells: Vec<Cell>,
pub eof: EOF,
pub comments: CommentTrivia,
}Expand description
Struct generated by strutuct! for SourceFile.
Fields§
§cells: Vec<Cell>Field SourceFile::cells generated by strutuct!.
eof: EOFField SourceFile::eof generated by strutuct!.
comments: CommentTriviaField SourceFile::comments generated by strutuct!.
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<N> Migrate<N> for SourceFilewhere
N: ExternalCstNode,
impl<N> Migrate<N> for SourceFilewhere
N: ExternalCstNode,
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 Spanned for SourceFile
impl Spanned for SourceFile
Source§impl Tokenize for SourceFile
impl Tokenize for SourceFile
Source§fn tokenize(&self, output: &mut CellStream) -> Result<(), CellStreamError>
fn tokenize(&self, output: &mut CellStream) -> Result<(), CellStreamError>
Appends this value’s independently parseable cells to
output. Read moreSource§fn to_cell_stream(&self) -> Result<CellStream, CellStreamError>
fn to_cell_stream(&self) -> Result<CellStream, CellStreamError>
Tokenizes this value into a fresh cell stream. Read more
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