Struct rowan::api::SyntaxToken [−][src]
pub struct SyntaxToken<L: Language> { /* fields omitted */ }
Implementations
Returns a green tree, equal to the green tree this token belongs two, except with this token substitute. The complexity of operation is proportional to the depth of the tree
pub fn siblings_with_tokens(
&self,
direction: Direction
) -> impl Iterator<Item = SyntaxElement<L>>
Next token in the tree (i.e, not necessary a sibling).
Previous token in the tree (i.e, not necessary a sibling).
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<L> !RefUnwindSafe for SyntaxToken<L>
impl<L> !Send for SyntaxToken<L>
impl<L> !Sync for SyntaxToken<L>
impl<L> Unpin for SyntaxToken<L> where
L: Unpin,
impl<L> !UnwindSafe for SyntaxToken<L>
Blanket Implementations
Mutably borrows from an owned value. Read more