pub struct UnusedImports { /* private fields */ }Expand description
Name spans of imports that no code in their file uses.
Implementations§
Source§impl UnusedImports
impl UnusedImports
pub fn mark_unused_import(&mut self, import: &FileImport)
pub fn is_unused_import(&self, key: ImportKey) -> bool
pub fn merge(&mut self, other: UnusedImports)
Trait Implementations§
Source§impl Clone for UnusedImports
impl Clone for UnusedImports
Source§impl Debug for UnusedImports
impl Debug for UnusedImports
Auto Trait Implementations§
impl Forget for UnusedImports
impl Freeze for UnusedImports
impl Move for UnusedImports
impl RefUnwindSafe for UnusedImports
impl Send for UnusedImports
impl Sync for UnusedImports
impl Unpin for UnusedImports
impl UnsafeUnpin for UnusedImports
impl UnwindSafe for UnusedImports
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