dprint_swc_ext::view

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§