pub struct PageDiffResult {
pub page_index: usize,
pub base_highlights: Vec<HighlightSpan>,
pub tailored_highlights: Vec<HighlightSpan>,
pub has_differences: bool,
}Expand description
Diff result for a single side-by-side page pair.
Fields§
§page_index: usize0-indexed page index.
base_highlights: Vec<HighlightSpan>Highlight spans to render on the Left (Base) pane.
tailored_highlights: Vec<HighlightSpan>Highlight spans to render on the Right (Tailored) pane.
has_differences: boolTrue if any differences were detected on this page.
Trait Implementations§
Source§impl Clone for PageDiffResult
impl Clone for PageDiffResult
Source§impl Debug for PageDiffResult
impl Debug for PageDiffResult
Source§impl PartialEq for PageDiffResult
impl PartialEq for PageDiffResult
impl StructuralPartialEq for PageDiffResult
Auto Trait Implementations§
impl Freeze for PageDiffResult
impl RefUnwindSafe for PageDiffResult
impl Send for PageDiffResult
impl Sync for PageDiffResult
impl Unpin for PageDiffResult
impl UnsafeUnpin for PageDiffResult
impl UnwindSafe for PageDiffResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more