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) -> usizeHow to align the bytes: Given two offsets, returns the offset to align to.
width: usizeThe width of a single line
before: usizeHow many lines to include before a diff as context.
after: usizeHow 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