Struct mun_syntax::SourceFile
source · pub struct SourceFile { /* private fields */ }
Expand description
SourceFile
represents a parse tree for a single Mun file.
Implementations§
source§impl SourceFile
impl SourceFile
pub fn parse(text: &str) -> Parse<SourceFile>
Trait Implementations§
source§impl AstNode for SourceFile
impl AstNode for SourceFile
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
source§impl Clone for SourceFile
impl Clone for SourceFile
source§fn clone(&self) -> SourceFile
fn clone(&self) -> SourceFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more