pub struct CodeColors {Show 16 fields
pub comment: Color,
pub keyword: Color,
pub string: Color,
pub string_escape: Color,
pub number: Color,
pub constant: Color,
pub function: Color,
pub type: Color,
pub variable: Color,
pub property: Color,
pub operator: Color,
pub punctuation: Color,
pub attribute: Color,
pub tag: Color,
pub label: Color,
pub error: Color,
}Fields§
§comment: Color§keyword: Color§string: Color§string_escape: Color§number: Color§constant: Color§function: Color§type: Color§variable: Color§property: Color§operator: Color§punctuation: Color§attribute: Color§tag: Color§label: Color§error: ColorImplementations§
Source§impl CodeColors
impl CodeColors
pub const DEFAULT: Self
pub fn builder() -> CodeColorsBuilder
Trait Implementations§
Source§impl Clone for CodeColors
impl Clone for CodeColors
Source§fn clone(&self) -> CodeColors
fn clone(&self) -> CodeColors
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 moreSource§impl Debug for CodeColors
impl Debug for CodeColors
Source§impl Default for CodeColors
impl Default for CodeColors
impl Copy for CodeColors
Auto Trait Implementations§
impl Freeze for CodeColors
impl RefUnwindSafe for CodeColors
impl Send for CodeColors
impl Sync for CodeColors
impl Unpin for CodeColors
impl UnsafeUnpin for CodeColors
impl UnwindSafe for CodeColors
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more