pub struct DiffColors {Show 16 fields
pub meta: String,
pub frag: String,
pub func: String,
pub old: String,
pub new: String,
pub context: String,
pub reset: String,
pub whitespace: String,
pub old_moved: String,
pub old_moved_alt: String,
pub old_moved_dim: String,
pub old_moved_alt_dim: String,
pub new_moved: String,
pub new_moved_alt: String,
pub new_moved_dim: String,
pub new_moved_alt_dim: String,
}Expand description
ANSI palette for colored diff output. Each slot holds the escape sequence
(empty when color is disabled), mirroring diff_get_color.
Fields§
§meta: String§frag: String§func: String§old: String§new: String§context: String§reset: String§whitespace: Stringcolor.diff.whitespace — the highlight for whitespace errors
(--ws-error-highlight). Default [7m (reverse), matching git.
old_moved: String§old_moved_alt: String§old_moved_dim: String§old_moved_alt_dim: String§new_moved: String§new_moved_alt: String§new_moved_dim: String§new_moved_alt_dim: StringImplementations§
Trait Implementations§
Source§impl Clone for DiffColors
impl Clone for DiffColors
Source§fn clone(&self) -> DiffColors
fn clone(&self) -> DiffColors
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DiffColors
impl Default for DiffColors
Source§fn default() -> DiffColors
fn default() -> DiffColors
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiffColors
impl RefUnwindSafe for DiffColors
impl Send for DiffColors
impl Sync for DiffColors
impl Unpin for DiffColors
impl UnsafeUnpin for DiffColors
impl UnwindSafe for DiffColors
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