pub trait Element {
// Required method
fn syntax_element(
self,
) -> NodeOrToken<SyntaxNode<RustLanguage>, SyntaxToken<RustLanguage>>;
}Expand description
Utility trait to allow calling syntax editor functions with references or owned nodes. Do not use outside of this module.
Required Methods§
fn syntax_element( self, ) -> NodeOrToken<SyntaxNode<RustLanguage>, SyntaxToken<RustLanguage>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".