Trait dprint_swc_ext::common::SourceTextProvider

source ·
pub trait SourceTextProvider<'a> {
    // Required methods
    fn text(&self) -> &'a Arc<str>;
    fn start_pos(&self) -> StartSourcePos;
}

Required Methods§

source

fn text(&self) -> &'a Arc<str>

source

fn start_pos(&self) -> StartSourcePos

Implementors§

source§

impl<'a, T> SourceTextProvider<'a> for T