pub struct InstrumentedCodeAndId { /* private fields */ }
Expand description
The newtype contains the instrumented code and the corresponding id (hash).
Implementations§
Source§impl InstrumentedCodeAndId
impl InstrumentedCodeAndId
Sourcepub fn code(&self) -> &InstrumentedCode
pub fn code(&self) -> &InstrumentedCode
Returns reference to the instrumented code.
Sourcepub fn into_parts(self) -> (InstrumentedCode, CodeId)
pub fn into_parts(self) -> (InstrumentedCode, CodeId)
Consumes the instance and returns the instrumented code.
Trait Implementations§
Source§impl Clone for InstrumentedCodeAndId
impl Clone for InstrumentedCodeAndId
Source§fn clone(&self) -> InstrumentedCodeAndId
fn clone(&self) -> InstrumentedCodeAndId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InstrumentedCodeAndId
impl Debug for InstrumentedCodeAndId
Auto Trait Implementations§
impl Freeze for InstrumentedCodeAndId
impl RefUnwindSafe for InstrumentedCodeAndId
impl Send for InstrumentedCodeAndId
impl Sync for InstrumentedCodeAndId
impl Unpin for InstrumentedCodeAndId
impl UnwindSafe for InstrumentedCodeAndId
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