pub enum CstKind {
Document,
Line,
Group,
Whitespace,
Newline,
Comment,
OpenParen,
CloseParen,
Colon,
Reference,
}Expand description
The kinds of nodes and tokens of a concrete syntax tree.
Variants§
Document
The whole document: its lines.
Line
One line: its tokens and groups, up to and including its line ending.
Group
A parenthesized group: (, the lines inside it, and ).
Whitespace
A run of spaces and tabs.
Newline
One line ending: \n, \r\n or \r.
Comment
A comment, from # up to the line ending.
OpenParen
(
CloseParen
)
Colon
:
Reference
A bare, quoted or versioned literal reference.
Implementations§
Trait Implementations§
impl Copy for CstKind
impl Eq for CstKind
impl StructuralPartialEq for CstKind
Auto Trait Implementations§
impl Forget for CstKind
impl Freeze for CstKind
impl RefUnwindSafe for CstKind
impl Send for CstKind
impl Sync for CstKind
impl Unpin for CstKind
impl UnsafeUnpin for CstKind
impl UnwindSafe for CstKind
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