pub struct TraceScope { /* private fields */ }Expand description
区间计时 guard:let _t = trace::scope("locate.dfs"); 离开作用域自动打点。
未启用时 Drop 内不输出(构造开销一次 Instant,纳秒级)。
Trait Implementations§
Source§impl Drop for TraceScope
impl Drop for TraceScope
Auto Trait Implementations§
impl Freeze for TraceScope
impl RefUnwindSafe for TraceScope
impl Send for TraceScope
impl Sync for TraceScope
impl Unpin for TraceScope
impl UnsafeUnpin for TraceScope
impl UnwindSafe for TraceScope
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