pub struct DiffOptions<'a> {
pub context_lines: usize,
pub old_label: Option<&'a str>,
pub new_label: Option<&'a str>,
pub missing_newline_hint: bool,
pub algorithm: DiffAlgorithm,
pub timeout: Duration,
pub inline_timeout: Duration,
}Expand description
Options controlling diff generation.
Fields§
§context_lines: usizeNumber of unchanged lines retained around a change.
old_label: Option<&'a str>Optional old-side label used by formatters.
new_label: Option<&'a str>Optional new-side label used by formatters.
missing_newline_hint: boolWhether formatters should emit missing-final-newline markers.
algorithm: DiffAlgorithmLine diff algorithm.
timeout: DurationMaximum line-diff computation time.
inline_timeout: DurationMaximum total time spent on intraline refinement.
Trait Implementations§
Source§impl<'a> Clone for DiffOptions<'a>
impl<'a> Clone for DiffOptions<'a>
Source§impl<'a> Debug for DiffOptions<'a>
impl<'a> Debug for DiffOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for DiffOptions<'a>
impl<'a> RefUnwindSafe for DiffOptions<'a>
impl<'a> Send for DiffOptions<'a>
impl<'a> Sync for DiffOptions<'a>
impl<'a> Unpin for DiffOptions<'a>
impl<'a> UnsafeUnpin for DiffOptions<'a>
impl<'a> UnwindSafe for DiffOptions<'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
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