Struct druid::debug_state::DebugState
source · pub struct DebugState {
pub display_name: String,
pub main_value: String,
pub other_values: HashMap<String, String>,
pub children: Vec<DebugState>,
}
Expand description
A description widget and its children, clonable and comparable, meant for testing and debugging. This is extremely not optimized.
Fields§
§display_name: String
The widget’s type as a human-readable string.
main_value: String
If a widget has a “central” value (for instance, a textbox’s contents), it is stored here.
other_values: HashMap<String, String>
Untyped values that reveal useful information about the widget.
children: Vec<DebugState>
Debug info of child widgets.
Trait Implementations§
source§impl Clone for DebugState
impl Clone for DebugState
source§fn clone(&self) -> DebugState
fn clone(&self) -> DebugState
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 DebugState
impl Debug for DebugState
source§impl Default for DebugState
impl Default for DebugState
source§fn default() -> DebugState
fn default() -> DebugState
Returns the “default value” for a type. Read more
source§impl PartialEq<DebugState> for DebugState
impl PartialEq<DebugState> for DebugState
source§fn eq(&self, other: &DebugState) -> bool
fn eq(&self, other: &DebugState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DebugState
impl StructuralEq for DebugState
impl StructuralPartialEq for DebugState
Auto Trait Implementations§
impl RefUnwindSafe for DebugState
impl Send for DebugState
impl Sync for DebugState
impl Unpin for DebugState
impl UnwindSafe for DebugState
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.