Trait dprint_swc_ext::view::TokenExt

source ·
pub trait TokenExt {
    // Required method
    fn token_index<'a, N: RootNode<'a>>(&self, root_node: N) -> usize;
}

Required Methods§

source

fn token_index<'a, N: RootNode<'a>>(&self, root_node: N) -> usize

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TokenExt for TokenAndSpan

source§

fn token_index<'a, N: RootNode<'a>>(&self, root_node: N) -> usize

Implementors§