[][src]Trait toml_parse::SyntaxNodeExtTrait

pub trait SyntaxNodeExtTrait {
    fn token_text(&self) -> String;
fn deep_eq(&self, other: &Self) -> bool; }

Required methods

fn token_text(&self) -> String

walks tokens collecting each tokens text into a final String.

fn deep_eq(&self, other: &Self) -> bool

rowan::SyntaxNode by default only compares pointer equality this method addition allows comparison of every token, the same file parsed multiple times will return true, with pointer eq this would be false.

Loading content...

Implementors

impl SyntaxNodeExtTrait for SyntaxNode[src]

Loading content...