pub struct UnusedSymbolResult {
pub unused_symbols: Vec<UnusedSymbol>,
pub would_become_unused: Vec<UnusedSymbol>,
}Expand description
Result of unused symbol analysis.
Fields§
§unused_symbols: Vec<UnusedSymbol>Symbols that are currently unused (zero references).
would_become_unused: Vec<UnusedSymbol>Symbols that would become unused if a deletion occurred.
Implementations§
Source§impl UnusedSymbolResult
impl UnusedSymbolResult
Sourcepub fn has_unused(&self) -> bool
pub fn has_unused(&self) -> bool
Check if there are any unused symbols.
Sourcepub fn has_potential_unused(&self) -> bool
pub fn has_potential_unused(&self) -> bool
Check if there are symbols that would become unused.
Sourcepub fn issue_count(&self) -> usize
pub fn issue_count(&self) -> usize
Get total count of issues.
Trait Implementations§
Source§impl Clone for UnusedSymbolResult
impl Clone for UnusedSymbolResult
Source§fn clone(&self) -> UnusedSymbolResult
fn clone(&self) -> UnusedSymbolResult
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 moreAuto Trait Implementations§
impl Freeze for UnusedSymbolResult
impl RefUnwindSafe for UnusedSymbolResult
impl Send for UnusedSymbolResult
impl Sync for UnusedSymbolResult
impl Unpin for UnusedSymbolResult
impl UnsafeUnpin for UnusedSymbolResult
impl UnwindSafe for UnusedSymbolResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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