pub struct DiffLine {
pub line: usize,
pub expected: Option<String>,
pub actual: Option<String>,
}Expand description
One differing line pair (1-based line number, content without the trailing newline).
Fields§
§line: usize1-based line number in the normalized expected output.
expected: Option<String>Expected line content, when the expected side has one.
actual: Option<String>Actual line content, when the actual side has one.
Trait Implementations§
impl Eq for DiffLine
impl StructuralPartialEq for DiffLine
Auto Trait Implementations§
impl Forget for DiffLine
impl Freeze for DiffLine
impl Move for DiffLine
impl RefUnwindSafe for DiffLine
impl Send for DiffLinewhere
RawVecInner: Send,
impl Sync for DiffLinewhere
RawVecInner: Sync,
impl Unpin for DiffLine
impl UnsafeUnpin for DiffLine
impl UnwindSafe for DiffLinewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.