pub struct FrameStats<'a> { /* private fields */ }Expand description
A compact panel for Scrin frame timing and named diagnostics.
Implementations§
Source§impl<'a> FrameStats<'a>
impl<'a> FrameStats<'a>
Sourcepub fn timing(self, timing: Option<FrameTiming>) -> Self
pub fn timing(self, timing: Option<FrameTiming>) -> Self
Sets the latest Scrin frame timing.
Sourcepub fn diagnostics<I>(self, diagnostics: I) -> Selfwhere
I: IntoIterator<Item = FrameDiagnostic>,
pub fn diagnostics<I>(self, diagnostics: I) -> Selfwhere
I: IntoIterator<Item = FrameDiagnostic>,
Replaces the named frame diagnostics shown below the timing summary.
Sourcepub fn dirty_regions(self, count: usize) -> Self
pub fn dirty_regions(self, count: usize) -> Self
Sets the number of dirty regions produced by the current frame.
Sourcepub fn interaction_counts(
self,
hit_regions: usize,
selectable_spans: usize,
scroll_regions: usize,
) -> Self
pub fn interaction_counts( self, hit_regions: usize, selectable_spans: usize, scroll_regions: usize, ) -> Self
Sets interaction metadata counts from Scrin’s interaction layer.
Sourcepub fn max_diagnostics(self, max: usize) -> Self
pub fn max_diagnostics(self, max: usize) -> Self
Limits how many named diagnostics are rendered.
Sourcepub fn palette(self, palette: AislingPalette) -> Self
pub fn palette(self, palette: AislingPalette) -> Self
Sets the color palette.
Sourcepub fn from_frame(frame: &Frame<'_>, timing: Option<FrameTiming>) -> Self
pub fn from_frame(frame: &Frame<'_>, timing: Option<FrameTiming>) -> Self
Builds a panel from a live Scrin frame and the previous frame timing.
Trait Implementations§
Source§impl<'a> Clone for FrameStats<'a>
impl<'a> Clone for FrameStats<'a>
Source§fn clone(&self) -> FrameStats<'a>
fn clone(&self) -> FrameStats<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for FrameStats<'a>
impl<'a> Debug for FrameStats<'a>
Source§impl Default for FrameStats<'_>
impl Default for FrameStats<'_>
Source§impl PartialEq for FrameStats<'_>
impl PartialEq for FrameStats<'_>
Auto Trait Implementations§
impl<'a> Freeze for FrameStats<'a>
impl<'a> RefUnwindSafe for FrameStats<'a>
impl<'a> Send for FrameStats<'a>
impl<'a> Sync for FrameStats<'a>
impl<'a> Unpin for FrameStats<'a>
impl<'a> UnsafeUnpin for FrameStats<'a>
impl<'a> UnwindSafe for FrameStats<'a>
Blanket Implementations§
Source§impl<W> AislingExt for Wwhere
W: Widget,
impl<W> AislingExt for Wwhere
W: Widget,
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