rustfmt_nightly::source_map

Trait LineRangeUtils

Source
pub(crate) trait LineRangeUtils {
    // Required method
    fn lookup_line_range(&self, span: Span) -> LineRange;
}

Required Methods§

Source

fn lookup_line_range(&self, span: Span) -> LineRange

Returns the LineRange that corresponds to span in self.

§Panics

Panics if span crosses a file boundary, which shouldn’t happen.

Implementors§