Struct kailua_syntax::NestedToken
[−]
[src]
pub struct NestedToken { pub tok: Spanned<Tok>, pub depth: u16, pub category: NestingCategory, pub serial: NestingSerial, }
A token with the nesting information.
Conceptually each token updates the current list of open nestings,
so the nesting information here applies to applies to the token and following whitespaces.
For example, do return end
has one nesting, which span is do return
and one space.
Fields
tok: Spanned<Tok>
The base token.
depth: u16
The current nesting depth.
category: NestingCategory
The major category of the current nesting.
serial: NestingSerial
The serial number of the current nesting.
Trait Implementations
impl Clone for NestedToken
[src]
fn clone(&self) -> NestedToken
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for NestedToken
[src]
fn eq(&self, __arg_0: &NestedToken) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NestedToken) -> bool
This method tests for !=
.