Struct rustfmt::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]

[src]

Creates a FileLines that contains all lines in all files.

[src]

Returns an iterator over the files contained in self.

[src]

Returns true if range is fully contained in self.

[src]

Returns true if any lines in range are in self.

[src]

Returns true if line from file_name is in self.

[src]

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

Trait Implementations

impl ConfigType for FileLines
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FileLines
[src]

[src]

Formats the value using the given formatter.

impl Default for FileLines
[src]

[src]

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

impl FromStr for FileLines
[src]

The associated error which can be returned from parsing.

[src]

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

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

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for FileLines
[src]

[src]

Serialize this value into the given Serde serializer. Read more