Struct cranelift_codegen::timing::TimingToken
source · [−]pub struct TimingToken { /* private fields */ }
Expand description
A timing token is responsible for timing the currently running pass. Timing starts when it is created and ends when it is dropped.
Multiple passes can be active at the same time, but they must be started and stopped in a LIFO fashion.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TimingToken
impl Send for TimingToken
impl Sync for TimingToken
impl Unpin for TimingToken
impl UnwindSafe for TimingToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more