pub struct ParseResult {
pub root: SyntaxNode,
/* private fields */
}Fields§
§root: SyntaxNodeImplementations§
Source§impl ParseResult
impl ParseResult
Sourcepub fn document(&self) -> DocumentNode
pub fn document(&self) -> DocumentNode
Returns the typed document CST root.
Args: None.
Returns: Typed document wrapper for the parse root.
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
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 ParseResult
impl Debug for ParseResult
Source§impl ParseResultExt for ParseResult
impl ParseResultExt for ParseResult
Source§fn root_children(&self) -> SyntaxNodeChildren<OnlyLanguage>
fn root_children(&self) -> SyntaxNodeChildren<OnlyLanguage>
Returns root CST children for top-level inspection.
Source§fn diagnostics(&self) -> &[Diagnostic]
fn diagnostics(&self) -> &[Diagnostic]
Returns collected parse diagnostics.
Auto Trait Implementations§
impl Freeze for ParseResult
impl !RefUnwindSafe for ParseResult
impl !Send for ParseResult
impl !Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl !UnwindSafe for ParseResult
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