Struct libdiffsitter::render::DisplayData
source · pub struct DisplayData<'a> {
pub hunks: RichHunks<'a>,
pub old: DocumentDiffData<'a>,
pub new: DocumentDiffData<'a>,
}
Expand description
The parameters a Renderer instance receives to render a diff.
Fields§
§hunks: RichHunks<'a>
The hunks constituting the diff.
old: DocumentDiffData<'a>
The parameters that correspond to the old document
new: DocumentDiffData<'a>
The parameters that correspond to the new document
Trait Implementations§
source§impl<'a> Clone for DisplayData<'a>
impl<'a> Clone for DisplayData<'a>
source§fn clone(&self) -> DisplayData<'a>
fn clone(&self) -> DisplayData<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for DisplayData<'a>
impl<'a> Debug for DisplayData<'a>
source§impl<'a> PartialEq<DisplayData<'a>> for DisplayData<'a>
impl<'a> PartialEq<DisplayData<'a>> for DisplayData<'a>
source§fn eq(&self, other: &DisplayData<'a>) -> bool
fn eq(&self, other: &DisplayData<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for DisplayData<'a>
impl<'a> Serialize for DisplayData<'a>
impl<'a> Eq for DisplayData<'a>
impl<'a> StructuralEq for DisplayData<'a>
impl<'a> StructuralPartialEq for DisplayData<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DisplayData<'a>
impl<'a> !Send for DisplayData<'a>
impl<'a> !Sync for DisplayData<'a>
impl<'a> Unpin for DisplayData<'a>
impl<'a> UnwindSafe for DisplayData<'a>
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