pub struct CodePalette {
pub keyword: Color,
pub literal: Color,
pub string: Color,
pub comment: Color,
}Expand description
代码块语法上色盘。词类口径见 highlight 模块;未覆盖区间用 Theme::code_text。
Fields§
§keyword: Color关键字色。
literal: Color数字 / 常量字面量色。
string: Color字符串色。
comment: Color注释色。
Trait Implementations§
Source§impl Clone for CodePalette
impl Clone for CodePalette
Source§fn clone(&self) -> CodePalette
fn clone(&self) -> CodePalette
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 moreimpl Copy for CodePalette
Auto Trait Implementations§
impl Freeze for CodePalette
impl RefUnwindSafe for CodePalette
impl Send for CodePalette
impl Sync for CodePalette
impl Unpin for CodePalette
impl UnsafeUnpin for CodePalette
impl UnwindSafe for CodePalette
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