Skip to main content

AstNode

Trait AstNode 

Source
pub trait AstNode {
    // Required method
    fn matching_source(&self) -> &Fragment;
}
Available on crate feature ast-models only.
Expand description

Common functionality for nodes in the AST.

Required Methods§

Source

fn matching_source(&self) -> &Fragment

Get the Fragment of source code this node was parsed from.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§