pub struct DiffPalette {
pub background: Rgba,
pub foreground: Rgba,
pub gutter: Rgba,
pub addition: Rgba,
pub deletion: Rgba,
pub addition_background: Rgba,
pub deletion_background: Rgba,
pub selection: Rgba,
pub accent: Rgba,
pub muted: Rgba,
pub border: Rgba,
}Expand description
Colors used by diff renderers.
Fields§
§background: Rgba§foreground: Rgba§gutter: Rgba§addition: Rgba§deletion: Rgba§addition_background: Rgba§deletion_background: Rgba§selection: Rgba§accent: Rgba§muted: Rgba§border: RgbaImplementations§
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 moreSource§impl Debug for DiffPalette
impl Debug for DiffPalette
Source§impl Default for DiffPalette
impl Default for DiffPalette
Source§impl<'de> Deserialize<'de> for DiffPalette
impl<'de> Deserialize<'de> for DiffPalette
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiffPalette
Source§impl From<&DiffPalette> for UiPalette
impl From<&DiffPalette> for UiPalette
Source§fn from(palette: &DiffPalette) -> Self
fn from(palette: &DiffPalette) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DiffPalette
impl PartialEq for DiffPalette
Source§impl Serialize for DiffPalette
impl Serialize 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