pub struct JsonTreeStyle {
pub object_key_color: Color32,
pub array_idx_color: Color32,
pub null_color: Color32,
pub bool_color: Color32,
pub number_color: Color32,
pub string_color: Color32,
pub highlight_color: Color32,
pub punctuation_color: Color32,
pub font_id: Option<FontId>,
}
Expand description
Contains coloring parameters for JSON syntax highlighting, and search match highlighting.
Fields§
§object_key_color: Color32
§array_idx_color: Color32
§null_color: Color32
§bool_color: Color32
§number_color: Color32
§string_color: Color32
§highlight_color: Color32
§punctuation_color: Color32
The text color for array brackets, object braces, colons and commas.
font_id: Option<FontId>
The font to use. Defaults to TextStyle::Monospace.resolve(ui.style())
.
Implementations§
source§impl JsonTreeStyle
impl JsonTreeStyle
pub fn get_color(&self, base_value_type: &BaseValueType) -> Color32
Trait Implementations§
source§impl Clone for JsonTreeStyle
impl Clone for JsonTreeStyle
source§fn clone(&self) -> JsonTreeStyle
fn clone(&self) -> JsonTreeStyle
Returns a copy 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 JsonTreeStyle
impl Debug for JsonTreeStyle
source§impl Default for JsonTreeStyle
impl Default for JsonTreeStyle
Auto Trait Implementations§
impl Freeze for JsonTreeStyle
impl RefUnwindSafe for JsonTreeStyle
impl Send for JsonTreeStyle
impl Sync for JsonTreeStyle
impl Unpin for JsonTreeStyle
impl UnwindSafe for JsonTreeStyle
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)