pub struct DiffResult<'a, T> { /* private fields */ }
Expand description
Result of a diff operation between a source
list and a result
list.
This struct contains a sequence of Diff
elements, and the source
and
result
lists that the diff sequence was computed from.
See the Diff
documentation for more details on how the diff is
represented.
§Diff output
The result maintains a reference to both the source
and result
lists
that the diff was computed from. This allows it to generate the textual
representation of the diff by implementing std::fmt::Display
.
This requires that the source
/result
items implement the Display
trait.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for DiffResult<'a, T>
impl<'a, T> RefUnwindSafe for DiffResult<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DiffResult<'a, T>where
T: Sync,
impl<'a, T> Sync for DiffResult<'a, T>where
T: Sync,
impl<'a, T> Unpin for DiffResult<'a, T>
impl<'a, T> UnwindSafe for DiffResult<'a, T>where
T: RefUnwindSafe,
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