pub struct EditorSyntaxThemePreference {Show 34 fields
pub text: Preference<Color>,
pub whitespace: Preference<Color>,
pub attribute: Preference<Color>,
pub boolean: Preference<Color>,
pub comment: Preference<Color>,
pub constant: Preference<Color>,
pub constructor: Preference<Color>,
pub escape: Preference<Color>,
pub function: Preference<Color>,
pub function_macro: Preference<Color>,
pub function_method: Preference<Color>,
pub keyword: Preference<Color>,
pub label: Preference<Color>,
pub module: Preference<Color>,
pub number: Preference<Color>,
pub operator: Preference<Color>,
pub property: Preference<Color>,
pub punctuation: Preference<Color>,
pub punctuation_bracket: Preference<Color>,
pub punctuation_delimiter: Preference<Color>,
pub punctuation_special: Preference<Color>,
pub string: Preference<Color>,
pub string_escape: Preference<Color>,
pub string_special: Preference<Color>,
pub tag: Preference<Color>,
pub text_literal: Preference<Color>,
pub text_reference: Preference<Color>,
pub text_title: Preference<Color>,
pub text_uri: Preference<Color>,
pub text_emphasis: Preference<Color>,
pub type_: Preference<Color>,
pub variable: Preference<Color>,
pub variable_builtin: Preference<Color>,
pub variable_parameter: Preference<Color>,
}Fields§
§text: Preference<Color>§whitespace: Preference<Color>§attribute: Preference<Color>§boolean: Preference<Color>§comment: Preference<Color>§constant: Preference<Color>§constructor: Preference<Color>§escape: Preference<Color>§function: Preference<Color>§function_macro: Preference<Color>§function_method: Preference<Color>§keyword: Preference<Color>§label: Preference<Color>§module: Preference<Color>§number: Preference<Color>§operator: Preference<Color>§property: Preference<Color>§punctuation: Preference<Color>§punctuation_bracket: Preference<Color>§punctuation_delimiter: Preference<Color>§punctuation_special: Preference<Color>§string: Preference<Color>§string_escape: Preference<Color>§string_special: Preference<Color>§tag: Preference<Color>§text_literal: Preference<Color>§text_reference: Preference<Color>§text_title: Preference<Color>§text_uri: Preference<Color>§text_emphasis: Preference<Color>§type_: Preference<Color>§variable: Preference<Color>§variable_builtin: Preference<Color>§variable_parameter: Preference<Color>Implementations§
Source§impl EditorSyntaxThemePreference
impl EditorSyntaxThemePreference
Sourcepub fn apply_optional(&mut self, optional: &EditorSyntaxThemePartial)
pub fn apply_optional(&mut self, optional: &EditorSyntaxThemePartial)
Checks each field in optional and if it’s Some, it overwrites the corresponding self field.
Sourcepub fn resolve(&mut self, colors_sheet: &ColorsSheet) -> EditorSyntaxTheme
pub fn resolve(&mut self, colors_sheet: &ColorsSheet) -> EditorSyntaxTheme
Checks each field in optional and if it’s Some, it overwrites the corresponding self field.
Trait Implementations§
Source§impl Clone for EditorSyntaxThemePreference
impl Clone for EditorSyntaxThemePreference
Source§fn clone(&self) -> EditorSyntaxThemePreference
fn clone(&self) -> EditorSyntaxThemePreference
Returns a duplicate of the value. Read more
1.0.0 · 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 EditorSyntaxThemePreference
impl Debug for EditorSyntaxThemePreference
impl StructuralPartialEq for EditorSyntaxThemePreference
Auto Trait Implementations§
impl Freeze for EditorSyntaxThemePreference
impl RefUnwindSafe for EditorSyntaxThemePreference
impl Send for EditorSyntaxThemePreference
impl Sync for EditorSyntaxThemePreference
impl Unpin for EditorSyntaxThemePreference
impl UnsafeUnpin for EditorSyntaxThemePreference
impl UnwindSafe for EditorSyntaxThemePreference
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> ComponentProps for T
impl<T> ComponentProps for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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