pub struct ByteStyle {
pub bg: Option<Color32>,
pub fg: Option<Color32>,
}Expand description
Foreground + background colour choice for a single byte cell.
Returned by a ByteStylerFn so the consumer can fully override the
built-in palette’s decision per byte (e.g. to highlight a matched
pattern, a diff, or bytes pointed to by a parsed template).
Fields§
§bg: Option<Color32>Background tint for the byte cell. None falls back to whatever
the configured palette would have chosen (or nothing, if none).
fg: Option<Color32>Text (glyph) color. None falls back to the default palette /
theme behavior, including contrast adjustment against bg.
Trait Implementations§
impl Copy for ByteStyle
impl Eq for ByteStyle
impl StructuralPartialEq for ByteStyle
Auto Trait Implementations§
impl Freeze for ByteStyle
impl RefUnwindSafe for ByteStyle
impl Send for ByteStyle
impl Sync for ByteStyle
impl Unpin for ByteStyle
impl UnsafeUnpin for ByteStyle
impl UnwindSafe for ByteStyle
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