pub struct UnifiedDiffOptions {
pub a_prefix: String,
pub b_prefix: String,
pub color: bool,
}Expand description
Options for unified_diff_string.
Fields§
§a_prefix: Stringa/ prefix used in the --- a/ header (git convention).
b_prefix: Stringb/ prefix used in the +++ b/ header.
color: boolWhether to colorize with ANSI escape codes (TTY mode).
Trait Implementations§
Source§impl Clone for UnifiedDiffOptions
impl Clone for UnifiedDiffOptions
Source§fn clone(&self) -> UnifiedDiffOptions
fn clone(&self) -> UnifiedDiffOptions
Returns a duplicate 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 Debug for UnifiedDiffOptions
impl Debug for UnifiedDiffOptions
Auto Trait Implementations§
impl Freeze for UnifiedDiffOptions
impl RefUnwindSafe for UnifiedDiffOptions
impl Send for UnifiedDiffOptions
impl Sync for UnifiedDiffOptions
impl Unpin for UnifiedDiffOptions
impl UnsafeUnpin for UnifiedDiffOptions
impl UnwindSafe for UnifiedDiffOptions
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