Element

Trait Element 

Source
pub trait Element {
    // Required method
    fn syntax_element(
        self,
    ) -> NodeOrToken<SyntaxNode<RustLanguage>, SyntaxToken<RustLanguage>>;
}
Expand description

Utility trait to allow calling ted functions with references or owned nodes. Do not use outside of this module.

Required Methods§

Implementations on Foreign Types§

Source§

impl Element for SyntaxNode<RustLanguage>

Source§

impl Element for SyntaxToken<RustLanguage>

Source§

impl<E> Element for &E
where E: Element + Clone,

Implementors§