pub struct InstructionNumberInstant { /* private fields */ }
Implementations§
Source§impl InstructionNumberInstant
impl InstructionNumberInstant
Sourcepub fn instruction_number_since(&self, other: Self) -> InstructionNumber
pub fn instruction_number_since(&self, other: Self) -> InstructionNumber
Calculate the number of cpu instruction number between two recordings
§Panics
If the two records are not the same cpu, an error will be returned.
Sourcepub fn instruction_number_since_checked(
&self,
other: Self,
) -> Result<InstructionNumber>
pub fn instruction_number_since_checked( &self, other: Self, ) -> Result<InstructionNumber>
Calculate the number of cpu instruction number number between two recordings
§Errors
If the two records are not the same cpu, an error will be returned
Trait Implementations§
Source§impl Clone for InstructionNumberInstant
impl Clone for InstructionNumberInstant
Source§fn clone(&self) -> InstructionNumberInstant
fn clone(&self) -> InstructionNumberInstant
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 InstructionNumberInstant
impl Debug for InstructionNumberInstant
Source§impl Sub for InstructionNumberInstant
impl Sub for InstructionNumberInstant
impl Copy for InstructionNumberInstant
Auto Trait Implementations§
impl Freeze for InstructionNumberInstant
impl RefUnwindSafe for InstructionNumberInstant
impl Send for InstructionNumberInstant
impl Sync for InstructionNumberInstant
impl Unpin for InstructionNumberInstant
impl UnwindSafe for InstructionNumberInstant
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