Struct rustfmt_nightly::file_lines::FileLines [] [src]

pub struct FileLines(_);

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.

Methods

impl FileLines
[src]

Creates a FileLines that contains all lines in all files.

Returns an iterator over the files contained in self.

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.

Returns true if any of the lines between lo and hi from file_name are in self.

Trait Implementations

impl ConfigType for FileLines
[src]

Returns hint text for use in Config::print_docs(). For enum types, this is a pipe-separated list of variants; for other types it returns "". Read more

impl Clone for FileLines
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FileLines
[src]

Formats the value using the given formatter.

impl Default for FileLines
[src]

Returns the "default value" for a type. Read more

impl FromStr for FileLines
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl<'de> Deserialize<'de> for FileLines
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for FileLines
[src]

Serialize this value into the given Serde serializer. Read more