We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099d0d6 commit b6ca760Copy full SHA for b6ca760
examples/demo/src/apps/custom_input.rs
@@ -1,6 +1,6 @@
1
use egui::{RichText, Ui};
2
use egui_json_tree::JsonTree;
3
-use serde_json::{json, Value};
+use serde_json::{Value, json};
4
5
use super::Show;
6
examples/demo/src/main.rs
@@ -1,7 +1,7 @@
use apps::{
- copy_to_clipboard::CopyToClipboardExample, custom_input::CustomExample,
+ Example, Show, copy_to_clipboard::CopyToClipboardExample, custom_input::CustomExample,
editor::JsonEditorExample, search::SearchExample,
- toggle_buttons::ToggleButtonsCustomisationDemo, wrapping::WrappingExample, Example, Show,
+ toggle_buttons::ToggleButtonsCustomisationDemo, wrapping::WrappingExample,
};
use serde_json::json;
7
src/node.rs
@@ -1,12 +1,13 @@
use std::collections::HashSet;
use egui::{
- collapsing_header::{paint_default_icon, CollapsingState},
Id, Ui,
+ collapsing_header::{CollapsingState, paint_default_icon},
8
use crate::{
9
- delimiters::{SpacingDelimiter, ARRAY_DELIMITERS, OBJECT_DELIMITERS},
+ DefaultExpand, JsonTree, JsonTreeStyle, ToggleButtonsState,
10
+ delimiters::{ARRAY_DELIMITERS, OBJECT_DELIMITERS, SpacingDelimiter},
11
pointer::{JsonPointer, JsonPointerSegment},
12
render::{
13
JsonTreeRenderer, ParentStatus, RenderBaseValueContext, RenderExpandableDelimiterContext,
@@ -15,7 +16,6 @@ use crate::{
15
16
response::JsonTreeResponse,
17
search::SearchTerm,
18
value::{ExpandableType, JsonTreeValue, ToJsonTreeValue},
- DefaultExpand, JsonTree, JsonTreeStyle, ToggleButtonsState,
19
20
21
pub(crate) struct JsonTreeNode<'a, 'b, T: ToJsonTreeValue> {
src/response.rs
-use egui::{collapsing_header::CollapsingState, Id, Ui};
+use egui::{Id, Ui, collapsing_header::CollapsingState};
/// The response from showing a [`JsonTree`](crate::JsonTree).
pub struct JsonTreeResponse {
src/style.rs
use egui::{Color32, FontId, TextStyle, Ui};
-use crate::{render::ParentStatus, value::BaseValueType, ToggleButtonsState};
+use crate::{ToggleButtonsState, render::ParentStatus, value::BaseValueType};
/// Styling configuration to control the appearance of the [`JsonTree`](crate::JsonTree).
#[derive(Debug, Clone, Default)]
tests/json_tree_test.rs
@@ -1,9 +1,9 @@
use std::sync::Arc;
-use egui::{mutex::Mutex, CentralPanel, Context, FontDefinitions, Style};
-use egui_json_tree::{render::RenderContext, DefaultExpand, JsonTree, JsonTreeStyle};
+use egui::{CentralPanel, Context, FontDefinitions, Style, mutex::Mutex};
+use egui_json_tree::{DefaultExpand, JsonTree, JsonTreeStyle, render::RenderContext};
#[cfg(feature = "serde_json")]
#[cfg(all(feature = "simd_json", not(feature = "serde_json")))]
use simd_json::{json, owned::Value};
0 commit comments