pub struct CodeHighlightStyle {
pub keyword: ColorRgb,
pub string: ColorRgb,
pub comment: ColorRgb,
pub number: ColorRgb,
}Expand description
Per-token-class colour palette for the built-in syntax highlighter.
Token classes a language doesn’t produce simply go unused; languages
without a recognised name (or language attribute) fall back to
code_text_color.
Fields§
§keyword: ColorRgb§string: ColorRgb§comment: ColorRgb§number: ColorRgbTrait Implementations§
Source§impl Clone for CodeHighlightStyle
impl Clone for CodeHighlightStyle
Source§impl Debug for CodeHighlightStyle
impl Debug for CodeHighlightStyle
Source§impl Default for CodeHighlightStyle
impl Default for CodeHighlightStyle
Source§impl<'de> Deserialize<'de> for CodeHighlightStylewhere
CodeHighlightStyle: Default,
impl<'de> Deserialize<'de> for CodeHighlightStylewhere
CodeHighlightStyle: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CodeHighlightStyle
impl Freeze for CodeHighlightStyle
impl Move for CodeHighlightStyle
impl RefUnwindSafe for CodeHighlightStyle
impl Send for CodeHighlightStyle
impl Sync for CodeHighlightStyle
impl Unpin for CodeHighlightStyle
impl UnsafeUnpin for CodeHighlightStyle
impl UnwindSafe for CodeHighlightStyle
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.