[−][src]Trait rnix::types::TypedNode
A TypedNode is simply a wrapper around an untyped node to provide a type system in some sense.
Required methods
fn cast(from: SyntaxNode) -> Option<Self>
Cast an untyped node into this strongly-typed node. This will return None if the type was not correct.
fn node(&self) -> &SyntaxNode
Return a reference to the inner untyped node
Provided methods
fn errors(&self) -> Vec<SyntaxElement>
Return all errors of all children, recursively
fn first_token(&self) -> Option<SyntaxToken>
Return the first non-trivia token
fn dump(&self) -> TextDump
Return a dump of the AST. One of the goals is to be a stable format that can be used in tests.