[][src]Struct rustfmt_nightly::ModifiedChunk

pub struct ModifiedChunk {
    pub line_number_orig: u32,
    pub lines_removed: u32,
    pub lines: Vec<String>,
}

A single span of changed lines, with 0 or more removed lines and a vector of 0 or more inserted lines.

Fields

line_number_orig: u32

The first to be removed from the original text

lines_removed: u32

The number of lines which have been replaced

lines: Vec<String>

The new lines

Trait Implementations

impl PartialEq<ModifiedChunk> for ModifiedChunk[src]

impl Eq for ModifiedChunk[src]

impl Debug for ModifiedChunk[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<E> SpecializationError for E[src]

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

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

impl<T> Erased for T[src]