pub enum CodeBlockWeight {
Primary,
Muted,
}Expand description
Visual weight for fenced code blocks.
Primary keeps the theme foreground at full intensity. Muted recedes the
block toward the theme background so secondary surfaces (evidence bodies
behind a disclosure) stay readable without competing with the summary.
Muted is an explicit theme-derived color, never a faint/dim text attribute:
several terminals attenuate that attribute to near-invisible and ratatui
only ever inserts modifiers, so a dimmed area background would mute every
glyph painted on top of it.
Variants§
Trait Implementations§
Source§impl Clone for CodeBlockWeight
impl Clone for CodeBlockWeight
impl Copy for CodeBlockWeight
Source§impl Debug for CodeBlockWeight
impl Debug for CodeBlockWeight
Source§impl Default for CodeBlockWeight
impl Default for CodeBlockWeight
impl Eq for CodeBlockWeight
Source§impl PartialEq for CodeBlockWeight
impl PartialEq for CodeBlockWeight
impl StructuralPartialEq for CodeBlockWeight
Auto Trait Implementations§
impl Freeze for CodeBlockWeight
impl RefUnwindSafe for CodeBlockWeight
impl Send for CodeBlockWeight
impl Sync for CodeBlockWeight
impl Unpin for CodeBlockWeight
impl UnsafeUnpin for CodeBlockWeight
impl UnwindSafe for CodeBlockWeight
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.