pub struct SpanStyle {
pub fg: Rgba,
pub bold: bool,
pub italic: bool,
}Expand description
Resolved inline style for one run — the theme is consulted at tokenize time (syntect’s highlight iterator already yields resolved styles), so nothing downstream re-touches syntect.
Fields§
§fg: RgbaForeground color.
bold: boolBold.
italic: boolItalic.
Trait Implementations§
impl Copy for SpanStyle
impl Eq for SpanStyle
impl StructuralPartialEq for SpanStyle
Auto Trait Implementations§
impl Freeze for SpanStyle
impl RefUnwindSafe for SpanStyle
impl Send for SpanStyle
impl Sync for SpanStyle
impl Unpin for SpanStyle
impl UnsafeUnpin for SpanStyle
impl UnwindSafe for SpanStyle
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§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.