pub struct TreeViewDiagnostics { /* private fields */ }Expand description
Permanent structural counters for a TreeView. The handle is UI-local
and intentionally cheap to clone into a benchmark or diagnostics panel.
Clones share counters through Rc<RefCell<_>>; updates saturate counters.
§Examples
use ailloli_ui_widgets::controls::TreeViewDiagnostics;
let diagnostics = TreeViewDiagnostics::new();
assert_eq!(diagnostics.snapshot().layout_calls, 0);Implementations§
Source§impl TreeViewDiagnostics
impl TreeViewDiagnostics
Trait Implementations§
Source§impl Clone for TreeViewDiagnostics
impl Clone for TreeViewDiagnostics
Source§fn clone(&self) -> TreeViewDiagnostics
fn clone(&self) -> TreeViewDiagnostics
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 Default for TreeViewDiagnostics
impl Default for TreeViewDiagnostics
Source§fn default() -> TreeViewDiagnostics
fn default() -> TreeViewDiagnostics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TreeViewDiagnostics
impl !RefUnwindSafe for TreeViewDiagnostics
impl !Send for TreeViewDiagnostics
impl !Sync for TreeViewDiagnostics
impl Unpin for TreeViewDiagnostics
impl !UnwindSafe for TreeViewDiagnostics
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.