pub struct ImportsReport {
pub path: Option<RelPath>,
pub unused: Vec<ImportSite>,
pub unresolved: Vec<ImportSite>,
pub redundant: Vec<ImportSite>,
pub unplaced: Vec<RelPath>,
}Expand description
imports [path]: import statements worth a look — unused, unresolved,
or the same target twice.
Fields§
§path: Option<RelPath>The file asked about; every file when absent.
unused: Vec<ImportSite>Declared imports whose bound name the file never spells again.
unresolved: Vec<ImportSite>Declared imports the layout could not place.
redundant: Vec<ImportSite>Declared imports naming an address another statement in the file already brings in.
unplaced: Vec<RelPath>Files whose language has a layout but which it cannot place — a crate’s integration tests, say — so their imports were not judged.
Trait Implementations§
Source§impl Clone for ImportsReport
impl Clone for ImportsReport
Source§impl Debug for ImportsReport
impl Debug for ImportsReport
Source§impl<'de> Deserialize<'de> for ImportsReport
impl<'de> Deserialize<'de> for ImportsReport
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
impl Eq for ImportsReport
Source§impl PartialEq for ImportsReport
impl PartialEq for ImportsReport
Source§impl Serialize for ImportsReport
impl Serialize for ImportsReport
impl StructuralPartialEq for ImportsReport
Auto Trait Implementations§
impl Freeze for ImportsReport
impl RefUnwindSafe for ImportsReport
impl Send for ImportsReport
impl Sync for ImportsReport
impl Unpin for ImportsReport
impl UnsafeUnpin for ImportsReport
impl UnwindSafe for ImportsReport
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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