pub struct SourceFile { /* private fields */ }Implementations§
Source§impl SourceFile
impl SourceFile
pub fn knots(&self) -> impl Iterator<Item = KnotDef>
pub fn includes(&self) -> impl Iterator<Item = IncludeStmt>
pub fn externals(&self) -> impl Iterator<Item = ExternalDecl>
pub fn stitches(&self) -> impl Iterator<Item = StitchDef>
pub fn var_decls(&self) -> impl Iterator<Item = VarDecl>
pub fn const_decls(&self) -> impl Iterator<Item = ConstDecl>
pub fn list_decls(&self) -> impl Iterator<Item = ListDecl>
pub fn content_lines(&self) -> impl Iterator<Item = ContentLine>
pub fn logic_lines(&self) -> impl Iterator<Item = LogicLine>
pub fn choices(&self) -> impl Iterator<Item = Choice>
pub fn gathers(&self) -> impl Iterator<Item = Gather>
Trait Implementations§
Source§impl AstNode for SourceFile
impl AstNode for SourceFile
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for SourceFile
impl Clone for SourceFile
Source§fn clone(&self) -> SourceFile
fn clone(&self) -> SourceFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceFile
impl Debug for SourceFile
Source§impl Display for SourceFile
impl Display for SourceFile
impl Eq for SourceFile
Source§impl Hash for SourceFile
impl Hash for SourceFile
Source§impl PartialEq for SourceFile
impl PartialEq for SourceFile
Source§fn eq(&self, other: &SourceFile) -> bool
fn eq(&self, other: &SourceFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceFile
Auto Trait Implementations§
impl !RefUnwindSafe for SourceFile
impl !Send for SourceFile
impl !Sync for SourceFile
impl !UnwindSafe for SourceFile
impl Freeze for SourceFile
impl Unpin for SourceFile
impl UnsafeUnpin 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