[][src]Trait taplo::util::coords::SplitLines

pub trait SplitLines {
    fn is_single_line(&self) -> bool;
fn split_lines(self, mapper: &Mapper) -> Vec<Range>; }

This trait is used for splitting a range into multiple single-line ranges.

This is needed because in VSCode semantic tokens could not span across multiple lines.

Required methods

fn is_single_line(&self) -> bool

fn split_lines(self, mapper: &Mapper) -> Vec<Range>

Loading content...

Implementors

impl SplitLines for Range[src]

Loading content...