Trait biome_json_parser::NthToken
source · pub trait NthToken: TokenSource {
// Required methods
fn nth(&mut self, n: usize) -> Self::Kind;
fn has_nth_preceding_line_break(&mut self, n: usize) -> bool;
}Expand description
Token source that supports inspecting the ‘nth’ token (lookahead)
Required Methods§
sourcefn has_nth_preceding_line_break(&mut self, n: usize) -> bool
fn has_nth_preceding_line_break(&mut self, n: usize) -> bool
Returns true if the nth non-trivia token is preceded by a line break