Expand description
This module contains types and functions to support formatting specific line ranges.
Re-exportsยง
use itertools::Itertools;๐use std::collections::HashMap;๐use std::path::PathBuf;๐use std::sync::Arc;๐use std::cmp;๐use std::fmt;๐use std::iter;๐use std::str;๐use rustc_span::SourceFile;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::Deserializer;๐use serde::Serialize;๐use serde::Serialize;๐use serde::Serializer;๐use serde::ser;๐use serde_json as json;๐use thiserror::Error;๐
Structsยง
- File
Lines - A set of lines in files.
- Files
FileLinesfiles iterator.- Json
Span - Line
Range - A range of lines in a file, inclusive of both ends.
- Range
- A range that is inclusive of both ends.
Enumsยง
- File
Lines Error - File
Name - Defines the name of an input - either a file or stdin.
Functionsยง
- canonicalize_
path_ ๐string - normalize_
ranges ๐ - Normalizes the ranges so that the invariants for
FileLineshold: ranges are non-overlapping, and ordered by their start point.