pub struct CpuSection<'a> { /* private fields */ }Expand description
Measures for as long as it is alive; see CpuTimer::measure.
Dropping it is the toc, so bind it to a name — let _section = ..., not let _ = ..., which drops it there and then and measures
nothing.
Trait Implementations§
Source§impl<'a> Debug for CpuSection<'a>
impl<'a> Debug for CpuSection<'a>
Source§impl Drop for CpuSection<'_>
impl Drop for CpuSection<'_>
Auto Trait Implementations§
impl<'a> !UnwindSafe for CpuSection<'a>
impl<'a> Freeze for CpuSection<'a>
impl<'a> RefUnwindSafe for CpuSection<'a>
impl<'a> Send for CpuSection<'a>
impl<'a> Sync for CpuSection<'a>
impl<'a> Unpin for CpuSection<'a>
impl<'a> UnsafeUnpin for CpuSection<'a>
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