pub struct CodeAnalysis {
pub readability: Score,
pub complexity: Score,
pub length: CodeLength,
pub attack_surface: Score,
}Expand description
How hard it is to read the supplied code and orient within it, before any bug hunting.
Fields§
§readability: ScoreEffort to reach a fully readable state — deobfuscation, decompilation.
complexity: ScoreEffort to understand what the relevant code does, assuming it is fully readable.
length: CodeLengthHow much code there is to read.
attack_surface: ScoreHow much of it is actually in scope for the bug hunt.
Implementations§
Source§impl CodeAnalysis
impl CodeAnalysis
Trait Implementations§
Source§impl Clone for CodeAnalysis
impl Clone for CodeAnalysis
Source§impl Debug for CodeAnalysis
impl Debug for CodeAnalysis
impl Eq for CodeAnalysis
Source§impl PartialEq for CodeAnalysis
impl PartialEq for CodeAnalysis
impl StructuralPartialEq for CodeAnalysis
Auto Trait Implementations§
impl Freeze for CodeAnalysis
impl RefUnwindSafe for CodeAnalysis
impl Send for CodeAnalysis
impl Sync for CodeAnalysis
impl Unpin for CodeAnalysis
impl UnsafeUnpin for CodeAnalysis
impl UnwindSafe for CodeAnalysis
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