Struct libdiffsitter::render::DocumentDiffData
source · pub struct DocumentDiffData<'a> {
pub filename: &'a str,
pub text: &'a str,
}
Expand description
The parameters required to display a diff for a particular document
Fields§
§filename: &'a str
The filename of the document
text: &'a str
The full text of the document
Trait Implementations§
source§impl<'a> Clone for DocumentDiffData<'a>
impl<'a> Clone for DocumentDiffData<'a>
source§fn clone(&self) -> DocumentDiffData<'a>
fn clone(&self) -> DocumentDiffData<'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 DocumentDiffData<'a>
impl<'a> Debug for DocumentDiffData<'a>
source§impl<'a> PartialEq<DocumentDiffData<'a>> for DocumentDiffData<'a>
impl<'a> PartialEq<DocumentDiffData<'a>> for DocumentDiffData<'a>
source§fn eq(&self, other: &DocumentDiffData<'a>) -> bool
fn eq(&self, other: &DocumentDiffData<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for DocumentDiffData<'a>
impl<'a> Serialize for DocumentDiffData<'a>
impl<'a> Eq for DocumentDiffData<'a>
impl<'a> StructuralEq for DocumentDiffData<'a>
impl<'a> StructuralPartialEq for DocumentDiffData<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DocumentDiffData<'a>
impl<'a> Send for DocumentDiffData<'a>
impl<'a> Sync for DocumentDiffData<'a>
impl<'a> Unpin for DocumentDiffData<'a>
impl<'a> UnwindSafe for DocumentDiffData<'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