pub struct DeadCode {
pub code_type: DeadCodeType,
pub name: Option<String>,
pub file_path: PathBuf,
pub start_line: usize,
pub end_line: usize,
pub reason: String,
pub confidence: f32,
pub suggestion: Option<String>,
}Expand description
A piece of dead code detected during analysis
Fields§
§code_type: DeadCodeTypeType of dead code (subroutine, variable, etc.)
name: Option<String>Name of the dead code element if available
file_path: PathBufFile path where the dead code is located
start_line: usizeStarting line number (1-based)
end_line: usizeEnding line number (1-based)
reason: StringHuman-readable explanation of why this is considered dead code
confidence: f32Confidence level (0.0-1.0) in the detection accuracy
suggestion: Option<String>Optional suggestion for fixing the dead code
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DeadCode
impl<'de> Deserialize<'de> for DeadCode
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 DeadCode
impl RefUnwindSafe for DeadCode
impl Send for DeadCode
impl Sync for DeadCode
impl Unpin for DeadCode
impl UnsafeUnpin for DeadCode
impl UnwindSafe for DeadCode
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