Trait rustfmt_nightly::source_map::LineRangeUtils[][src]

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

Required methods

Returns the LineRange that corresponds to span in self.

Panics

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

Implementors