Trait egui_json_tree::value::ToJsonTreeValue
source · pub trait ToJsonTreeValue {
// Required methods
fn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>;
fn is_expandable(&self) -> bool;
}Expand description
A trait for types that can be converted to a JsonTreeValue.
Required Methods§
sourcefn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>
fn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>
Converts this JSON value to a JsonTreeValue.
sourcefn is_expandable(&self) -> bool
fn is_expandable(&self) -> bool
Returns whether this JSON value is expandable, i.e. whether it is an object or an array.
Object Safety§
This trait is not object safe.