dprint_swc_ext::common

Trait 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