pub struct BytecodeMetrics {
pub schema: &'static str,
pub instructions: u64,
pub opcode_counts: [u64; 44],
pub calls: u64,
pub returns: u64,
pub unwinds: u64,
pub suspensions: u64,
pub resumptions: u64,
pub terminal_returns: u64,
pub failures: u64,
pub max_stack_depth: u32,
pub max_call_depth: u16,
}Fields§
§schema: &'static str§instructions: u64§opcode_counts: [u64; 44]§calls: u64§returns: u64§unwinds: u64§suspensions: u64§resumptions: u64§terminal_returns: u64§failures: u64§max_stack_depth: u32§max_call_depth: u16Implementations§
Source§impl BytecodeMetrics
impl BytecodeMetrics
pub fn opcode_count(&self, opcode: Opcode) -> u64
pub fn named_opcode_counts(&self) -> impl Iterator<Item = OpcodeCount> + '_
Trait Implementations§
Source§impl Clone for BytecodeMetrics
impl Clone for BytecodeMetrics
Source§fn clone(&self) -> BytecodeMetrics
fn clone(&self) -> BytecodeMetrics
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 moreSource§impl Debug for BytecodeMetrics
impl Debug for BytecodeMetrics
Source§impl Default for BytecodeMetrics
impl Default for BytecodeMetrics
impl Eq for BytecodeMetrics
Source§impl PartialEq for BytecodeMetrics
impl PartialEq for BytecodeMetrics
impl StructuralPartialEq for BytecodeMetrics
Auto Trait Implementations§
impl Freeze for BytecodeMetrics
impl RefUnwindSafe for BytecodeMetrics
impl Send for BytecodeMetrics
impl Sync for BytecodeMetrics
impl Unpin for BytecodeMetrics
impl UnsafeUnpin for BytecodeMetrics
impl UnwindSafe for BytecodeMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more