pub struct InstructionCount {
pub count: u64,
pub unit: InstructionUnit,
}Expand description
How many instructions a program has, in the unit that says how they were counted.
Fields§
§count: u64The number of instructions counted.
unit: InstructionUnitWhat count counts; counts of different units are not comparable.
Trait Implementations§
Source§impl Clone for InstructionCount
impl Clone for InstructionCount
Source§fn clone(&self) -> InstructionCount
fn clone(&self) -> InstructionCount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InstructionCount
Source§impl Debug for InstructionCount
impl Debug for InstructionCount
impl Eq for InstructionCount
Source§impl PartialEq for InstructionCount
impl PartialEq for InstructionCount
Source§impl Serialize for InstructionCount
impl Serialize for InstructionCount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InstructionCount
Auto Trait Implementations§
impl Forget for InstructionCount
impl Freeze for InstructionCount
impl RefUnwindSafe for InstructionCount
impl Send for InstructionCount
impl Sync for InstructionCount
impl Unpin for InstructionCount
impl UnsafeUnpin for InstructionCount
impl UnwindSafe for InstructionCount
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