pub struct BytecodeAnalysis {
pub instruction_count: usize,
pub calls: Vec<usize>,
pub jumps: Vec<usize>,
pub state_mutations: Vec<usize>,
pub issues: Vec<BytecodeIssue>,
}Expand description
Result of bytecode analysis.
Fields§
§instruction_count: usizeTotal instructions.
calls: Vec<usize>Detected call locations (PC offsets).
jumps: Vec<usize>Detected jump locations.
state_mutations: Vec<usize>Detected state mutations.
issues: Vec<BytecodeIssue>Identified issues.
Implementations§
Source§impl BytecodeAnalysis
impl BytecodeAnalysis
Sourcepub fn has_critical(&self) -> bool
pub fn has_critical(&self) -> bool
Check if analysis found critical issues.
Trait Implementations§
Source§impl Clone for BytecodeAnalysis
impl Clone for BytecodeAnalysis
Source§fn clone(&self) -> BytecodeAnalysis
fn clone(&self) -> BytecodeAnalysis
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 BytecodeAnalysis
impl Debug for BytecodeAnalysis
Source§impl Default for BytecodeAnalysis
impl Default for BytecodeAnalysis
Source§impl<'de> Deserialize<'de> for BytecodeAnalysis
impl<'de> Deserialize<'de> for BytecodeAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BytecodeAnalysis
impl RefUnwindSafe for BytecodeAnalysis
impl Send for BytecodeAnalysis
impl Sync for BytecodeAnalysis
impl Unpin for BytecodeAnalysis
impl UnsafeUnpin for BytecodeAnalysis
impl UnwindSafe for BytecodeAnalysis
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