pub struct SyntaxTheme {
pub keyword_color: u32,
pub type_color: u32,
pub string_color: u32,
pub comment_color: u32,
pub number_color: u32,
pub operator_color: u32,
pub function_color: u32,
pub macro_color: u32,
pub attribute_color: u32,
pub lifetime_color: u32,
pub normal_color: u32,
}Expand description
Color theme mapping each token type to a BGRA u32 color.
Format: 0xAABBGGRR when written to the BGRA framebuffer, but the
existing draw_char_into_buffer expects a RGB u32 (0x00RRGGBB)
which it converts internally. We store colors in that same convention.
Fields§
§keyword_color: u32§type_color: u32§string_color: u32§comment_color: u32§number_color: u32§operator_color: u32§function_color: u32§macro_color: u32§attribute_color: u32§lifetime_color: u32§normal_color: u32Trait Implementations§
Source§impl Clone for SyntaxTheme
impl Clone for SyntaxTheme
Source§fn clone(&self) -> SyntaxTheme
fn clone(&self) -> SyntaxTheme
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyntaxTheme
impl RefUnwindSafe for SyntaxTheme
impl Send for SyntaxTheme
impl Sync for SyntaxTheme
impl Unpin for SyntaxTheme
impl UnwindSafe for SyntaxTheme
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)