pub struct ProfilerZone<'a> { /* private fields */ }Expand description
RAII guard for profiler zones.
Implementations§
Source§impl<'a> ProfilerZone<'a>
impl<'a> ProfilerZone<'a>
Sourcepub fn new(hooks: &'a ProfilerHooks, name: &'static str) -> Self
pub fn new(hooks: &'a ProfilerHooks, name: &'static str) -> Self
Create a new profiler zone.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ProfilerZone<'a>
impl<'a> !RefUnwindSafe for ProfilerZone<'a>
impl<'a> Send for ProfilerZone<'a>
impl<'a> Sync for ProfilerZone<'a>
impl<'a> Unpin for ProfilerZone<'a>
impl<'a> !UnwindSafe for ProfilerZone<'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