pub struct PcurveFitScope { /* private fields */ }Expand description
An open tally of the pcurve fits made on this thread — see
PcurveFitLedger. Open it where an operation starts, close it where
the operation returns its diagnostics; a ? that unwinds past it drops the
tally.
Implementations§
Source§impl PcurveFitScope
impl PcurveFitScope
pub fn open() -> Self
Sourcepub fn close(self) -> PcurveFitLedger
pub fn close(self) -> PcurveFitLedger
Take the tally, folding it into the enclosing scope if there is one.
Trait Implementations§
Source§impl Drop for PcurveFitScope
impl Drop for PcurveFitScope
Auto Trait Implementations§
impl !Send for PcurveFitScope
impl !Sync for PcurveFitScope
impl Forget for PcurveFitScope
impl Freeze for PcurveFitScope
impl Move for PcurveFitScope
impl RefUnwindSafe for PcurveFitScope
impl Unpin for PcurveFitScope
impl UnsafeUnpin for PcurveFitScope
impl UnwindSafe for PcurveFitScope
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