pub enum CstKind<K: TokenKind, R: RuleId> {
Token(K),
Rule(R),
Trivia(K),
Error(&'static str),
}Expand description
Type of node stored in the CST arena.
Variants§
Token(K)
Leaf node produced directly from a token.
Rule(R)
Node produced by a grammar rule.
Trivia(K)
Node representing trivia.
Error(&'static str)
Parser error node.
Trait Implementations§
Auto Trait Implementations§
impl<K, R> Freeze for CstKind<K, R>
impl<K, R> RefUnwindSafe for CstKind<K, R>where
K: RefUnwindSafe,
R: RefUnwindSafe,
impl<K, R> Send for CstKind<K, R>
impl<K, R> Sync for CstKind<K, R>
impl<K, R> Unpin for CstKind<K, R>
impl<K, R> UnwindSafe for CstKind<K, R>where
K: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more