pub struct DiffTheme {Show 14 fields
pub name: &'static str,
pub deletion_fill: [f32; 4],
pub deletion_stroke: [f32; 4],
pub addition_fill: [f32; 4],
pub addition_stroke: [f32; 4],
pub replaced_line_tint: [f32; 4],
pub gutter_color: [f32; 4],
pub header_bg: [f32; 4],
pub header_border: [f32; 4],
pub header_title_color: [f32; 4],
pub header_meta_color: [f32; 4],
pub placeholder_bg: [f32; 4],
pub placeholder_border: [f32; 4],
pub placeholder_text: [f32; 4],
}Expand description
Full RGBA color palette definition for rendering visual diffs.
Fields§
§name: &'static str§deletion_fill: [f32; 4]§deletion_stroke: [f32; 4]§addition_fill: [f32; 4]§addition_stroke: [f32; 4]§replaced_line_tint: [f32; 4]§gutter_color: [f32; 4]§header_bg: [f32; 4]§header_border: [f32; 4]§header_title_color: [f32; 4]§header_meta_color: [f32; 4]§placeholder_bg: [f32; 4]§placeholder_border: [f32; 4]§placeholder_text: [f32; 4]Trait Implementations§
impl Copy for DiffTheme
impl StructuralPartialEq for DiffTheme
Auto Trait Implementations§
impl Freeze for DiffTheme
impl RefUnwindSafe for DiffTheme
impl Send for DiffTheme
impl Sync for DiffTheme
impl Unpin for DiffTheme
impl UnsafeUnpin for DiffTheme
impl UnwindSafe for DiffTheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more