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§
Sourcefn matching_source(&self) -> &Fragment
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".