[][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 Eq for ModifiedChunk[src]

impl PartialEq<ModifiedChunk> for ModifiedChunk[src]

impl Debug for ModifiedChunk[src]

impl StructuralPartialEq for ModifiedChunk[src]

impl StructuralEq for ModifiedChunk[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, 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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]