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


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>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]

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