(line: &str, start_col: usize)
| 163 | } |
| 164 | |
| 165 | fn slice_from_column(line: &str, start_col: usize) -> String { |
| 166 | let start = byte_index_for_column_start(line, start_col); |
| 167 | if start >= line.len() { |
| 168 | return String::new(); |
| 169 | } |
| 170 | line[start..].to_string() |
| 171 | } |
| 172 | |
| 173 | fn slice_to_column(line: &str, end_col_exclusive: usize) -> String { |
| 174 | let end = byte_index_for_column_end(line, end_col_exclusive); |
no test coverage detected