pub enum DeadCodeType {
UnusedSubroutine,
UnusedVariable,
UnusedConstant,
UnusedPackage,
UnreachableCode,
DeadBranch,
UnusedImport,
UnusedExport,
}Expand description
Types of dead code detected during Perl script analysis
Variants§
UnusedSubroutine
Subroutine defined but never called
UnusedVariable
Variable declared but never used
UnusedConstant
Constant defined but never referenced
UnusedPackage
Package declared but never used
UnreachableCode
Code that can never be executed
DeadBranch
Conditional branch that is never taken
UnusedImport
Module imported but never used
UnusedExport
Function exported but never used externally
Trait Implementations§
Source§impl Clone for DeadCodeType
impl Clone for DeadCodeType
Source§fn clone(&self) -> DeadCodeType
fn clone(&self) -> DeadCodeType
Returns a duplicate of the value. Read more
1.0.0 · 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 DeadCodeType
impl Debug for DeadCodeType
Source§impl<'de> Deserialize<'de> for DeadCodeType
impl<'de> Deserialize<'de> for DeadCodeType
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
Source§impl PartialEq for DeadCodeType
impl PartialEq for DeadCodeType
Source§impl Serialize for DeadCodeType
impl Serialize for DeadCodeType
impl Copy for DeadCodeType
impl Eq for DeadCodeType
impl StructuralPartialEq for DeadCodeType
Auto Trait Implementations§
impl Freeze for DeadCodeType
impl RefUnwindSafe for DeadCodeType
impl Send for DeadCodeType
impl Sync for DeadCodeType
impl Unpin for DeadCodeType
impl UnsafeUnpin for DeadCodeType
impl UnwindSafe for DeadCodeType
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