pub struct CodeTheme {
pub plain: Color,
pub keyword: Color,
pub types: Color,
pub function: Color,
pub macros: Color,
pub string: Color,
pub number: Color,
pub comment: Color,
pub attribute: Color,
pub punct: Color,
}Expand description
Colors of a code theme.
Fields§
§plain: ColorText that is not a token below.
keyword: Colorfn, let, if…
types: ColorType names.
function: ColorFunction names.
macros: ColorMacro names.
string: ColorString literals.
number: ColorNumber literals.
comment: ColorComments.
attribute: ColorAttributes and decorators.
punct: ColorPunctuation and operators.
Implementations§
Trait Implementations§
impl StructuralPartialEq for CodeTheme
Auto Trait Implementations§
impl Freeze for CodeTheme
impl RefUnwindSafe for CodeTheme
impl Send for CodeTheme
impl Sync for CodeTheme
impl Unpin for CodeTheme
impl UnsafeUnpin for CodeTheme
impl UnwindSafe for CodeTheme
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