pub struct SourceFile {
pub elements: Vec<AnyCell>,
}Fields§
§elements: Vec<AnyCell>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 From<SourceFile> for SyntaxNode
impl From<SourceFile> for SyntaxNode
Source§fn from(value: SourceFile) -> Self
fn from(value: SourceFile) -> Self
Converts to this type from the input type.
Source§impl Parse for SourceFile
impl Parse for SourceFile
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Source§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,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for SourceFile
impl ToCells for SourceFile
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Source§impl ToTokens for SourceFile
impl ToTokens for SourceFile
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