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§

source

fn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>

Converts this JSON value to a JsonTreeValue.

source

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.

Implementations on Foreign Types§

source§

impl ToJsonTreeValue for Value

Implementors§