#[repr(u8)]pub enum Detail {
Off = 0,
Stages = 1,
Diagnostic = 2,
}Expand description
How much performance measurement this process performs.
Variants§
Off = 0
Measure nothing. No clock is read on any hot path.
Stages = 1
Record fixed stage spans, typed counters, and the causal record.
Diagnostic = 2
Everything in Detail::Stages, plus the per-pattern, per-decoder and
per-backend decomposition that costs measurable hot-path time.
Implementations§
Source§impl Detail
impl Detail
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Stable text label used by human reports and config echoes.
Sourcepub const fn records_stages(self) -> bool
pub const fn records_stages(self) -> bool
True when stage spans and typed counters should be recorded.
Sourcepub const fn is_diagnostic(self) -> bool
pub const fn is_diagnostic(self) -> bool
True when the expensive per-pattern and per-backend decomposition should be recorded.
Trait Implementations§
impl Copy for Detail
impl Eq for Detail
Source§impl Ord for Detail
impl Ord for Detail
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Detail
impl PartialOrd for Detail
impl StructuralPartialEq for Detail
Auto Trait Implementations§
impl Freeze for Detail
impl RefUnwindSafe for Detail
impl Send for Detail
impl Sync for Detail
impl Unpin for Detail
impl UnsafeUnpin for Detail
impl UnwindSafe for Detail
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