pub struct DiffPalette {
pub negative_row_bg: Color,
pub positive_row_bg: Color,
pub negative_word_bg: Color,
pub positive_word_bg: Color,
pub negative_fg: Color,
pub positive_fg: Color,
}Expand description
Positive and negative colors used for diff chrome.
Fields§
§negative_row_bg: ColorBackground color for removed source rows.
positive_row_bg: ColorBackground color for added source rows.
negative_word_bg: ColorBackground color for changed word spans inside removed rows.
positive_word_bg: ColorBackground color for changed word spans inside added rows.
negative_fg: ColorForeground color for removed stats, markers, and labels.
positive_fg: ColorForeground color for added stats, markers, and labels.
Trait Implementations§
Source§impl Clone for DiffPalette
impl Clone for DiffPalette
Source§fn clone(&self) -> DiffPalette
fn clone(&self) -> DiffPalette
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 moreimpl Copy for DiffPalette
Source§impl Debug for DiffPalette
impl Debug for DiffPalette
Source§impl Default for DiffPalette
impl Default for DiffPalette
impl Eq for DiffPalette
Source§impl From<&RawTheme> for DiffPalette
impl From<&RawTheme> for DiffPalette
Source§impl PartialEq for DiffPalette
impl PartialEq for DiffPalette
impl StructuralPartialEq for DiffPalette
Auto Trait Implementations§
impl Freeze for DiffPalette
impl RefUnwindSafe for DiffPalette
impl Send for DiffPalette
impl Sync for DiffPalette
impl Unpin for DiffPalette
impl UnsafeUnpin for DiffPalette
impl UnwindSafe for DiffPalette
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