pub struct Settings {
pub align: fn(_: usize, _: usize) -> usize,
pub width: usize,
pub before: usize,
pub after: usize,
}
Expand description
Settings for the diffing process
Fields§
§align: fn(_: usize, _: usize) -> usize
How to align the bytes: Given two offsets, returns the offset to align to.
width: usize
The width of a single line
before: usize
How many lines to include before a diff as context.
after: usize
How many lines to include after a diff as context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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