pub struct RenderDiagnostics { /* private fields */ }Expand description
Counters and once-only warnings that a scene collects while it dispatches pointer events.
Implementations§
Source§impl RenderDiagnostics
impl RenderDiagnostics
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates diagnostics with no warnings reported and no lookup misses counted.
Sourcepub fn claim_warning_once(&self, key: &'static str) -> bool
pub fn claim_warning_once(&self, key: &'static str) -> bool
Returns true the first time it is called with key, so that a warning is reported once.
Sourcepub fn record_live_modifier_slice_lookup_miss(&self)
pub fn record_live_modifier_slice_lookup_miss(&self)
Counts one pointer dispatch that fell back to the captured modifier slices because the live node could not be found.
Sourcepub fn live_modifier_slice_lookup_miss_count(&self) -> usize
pub fn live_modifier_slice_lookup_miss_count(&self) -> usize
Number of pointer dispatches that did not find the live node and used the modifier slices captured at build time instead.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RenderDiagnostics
impl !RefUnwindSafe for RenderDiagnostics
impl !Sync for RenderDiagnostics
impl Send for RenderDiagnostics
impl Unpin for RenderDiagnostics
impl UnsafeUnpin for RenderDiagnostics
impl UnwindSafe for RenderDiagnostics
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