Struct rustfmt_nightly::FileLines [−][src]
Expand description
A set of lines in files.
It is represented as a multimap keyed on file names, with values a collection of
non-overlapping ranges sorted by their start point. An inner None is interpreted to mean all
lines in all files.
Tuple Fields
0: Option<HashMap<FileName, Vec<Range>>>Implementations
Returns true if this FileLines contains all lines in all files.
Returns an iterator over the files contained in self.
Returns JSON representation as accepted by the --file-lines JSON arg.
Returns true if self includes all lines in all files. Otherwise runs f on all ranges
in the designated file (if any) and returns true if f ever does.
Returns true if range is fully contained in self.
Returns true if any lines in range are in self.
Returns true if line from file_name is in self.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FileLines
impl UnwindSafe for FileLines
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes