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: StringThe widget’s type as a human-readable string.
main_value: StringIf 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 duplicate 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 for DebugState
impl PartialEq for DebugState
impl Eq for DebugState
impl StructuralPartialEq for DebugState
Auto Trait Implementations§
impl Freeze for DebugState
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> 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§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>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.