[][src]Struct rustfmt_nightly::FileLines

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]

pub fn from_ranges(ranges: HashMap<FileName, Vec<Range>>) -> FileLines[src]

pub fn files(&self) -> Files[src]

Returns an iterator over the files contained in self.

pub fn to_json_spans(&self) -> Vec<JsonSpan>[src]

Returns JSON representation as accepted by the --file-lines JSON arg.

Trait Implementations

impl Clone for FileLines[src]

impl Default for FileLines[src]

impl PartialEq<FileLines> for FileLines[src]

impl Debug for FileLines[src]

impl Display for FileLines[src]

impl FromStr for FileLines[src]

type Err = String

The associated error which can be returned from parsing.

impl StructuralPartialEq for FileLines[src]

impl Serialize for FileLines[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]