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]
fn all() -> FileLines
Creates a FileLines that contains all lines in all files.
fn files(&self) -> Files
Returns an iterator over the files contained in self.
fn contains(&self, range: &LineRange) -> bool
Returns true if range is fully contained in self.
fn intersects(&self, range: &LineRange) -> bool
Returns true if any lines in range are in self.
fn contains_line(&self, file_name: &str, line: usize) -> bool
Returns true if line from file_name is in self.
fn intersects_range(&self, file_name: &str, lo: usize, hi: usize) -> bool
Returns true if any of the lines between lo and hi from file_name are in self.
Trait Implementations
impl ConfigType for FileLines[src]
fn doc_hint() -> String
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]
fn clone(&self) -> FileLines
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for FileLines[src]
impl Default for FileLines[src]
impl FromStr for FileLines[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<FileLines, String>
Parses a string s to return a value of this type. Read more
impl<'de> Deserialize<'de> for FileLines[src]
fn deserialize<D>(_: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more