pub struct ReviewTheme {
pub syntax: SyntaxTheme,
pub markdown: MarkdownPalette,
pub diff: DiffPalette,
}Expand description
Aggregate theme shared by terminal and desktop adapters.
Fields§
§syntax: SyntaxTheme§markdown: MarkdownPalette§diff: DiffPaletteImplementations§
Source§impl ReviewTheme
impl ReviewTheme
Sourcepub fn revision(&self) -> Fingerprint
pub fn revision(&self) -> Fingerprint
Returns a stable revision derived from every renderer-visible theme value.
Renderer caches should use this aggregate revision rather than the syntax revision alone so Markdown and diff palette changes also invalidate rows.
Trait Implementations§
Source§impl Clone for ReviewTheme
impl Clone for ReviewTheme
Source§fn clone(&self) -> ReviewTheme
fn clone(&self) -> ReviewTheme
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 ReviewTheme
impl Debug for ReviewTheme
Source§impl Default for ReviewTheme
impl Default for ReviewTheme
Auto Trait Implementations§
impl Freeze for ReviewTheme
impl RefUnwindSafe for ReviewTheme
impl Send for ReviewTheme
impl Sync for ReviewTheme
impl Unpin for ReviewTheme
impl UnsafeUnpin for ReviewTheme
impl UnwindSafe for ReviewTheme
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