Type Alias rowan::cursor::SyntaxElement

source ·
pub type SyntaxElement = NodeOrToken<SyntaxNode, SyntaxToken>;

Aliased Type§

enum SyntaxElement {
    Node(SyntaxNode),
    Token(SyntaxToken),
}

Variants§

Implementations§

Trait Implementations§

source§

impl<L: Language> From<NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>> for SyntaxElement

source§

fn from(element: SyntaxElement<L>) -> SyntaxElement

Converts to this type from the input type.
source§

impl From<SyntaxNode> for SyntaxElement

source§

fn from(node: SyntaxNode) -> SyntaxElement

Converts to this type from the input type.
source§

impl From<SyntaxToken> for SyntaxElement

source§

fn from(token: SyntaxToken) -> SyntaxElement

Converts to this type from the input type.