pub struct SpecifierUsage {
pub name: String,
pub file_count: usize,
pub type_only_file_count: usize,
pub call_site_count: usize,
pub unresolved: SpecifierUnresolved,
pub wrappers: Vec<UsageWrapper>,
}Expand description
The usage of one imported name.
Fields§
§name: StringThe imported name: default for a default import, the first member for
a namespace member, and * for a bare namespace use.
file_count: usizeFiles with a static import binding of the name, a namespace member use of it, or a re-export of it from the package.
type_only_file_count: usizeThe files in file_count where every binding of the name is type-only:
an import type, or a value import that the file reads only in type
positions.
call_site_count: usizeDirect calls of the name, not through a project wrapper. The
initializer of a call wrapper (useSelector.withTypes()) is a direct
call and counts here.
unresolved: SpecifierUnresolvedUses of the name that the trace cannot resolve to a call.
wrappers: Vec<UsageWrapper>Project wrappers of the name, sorted by file, then export.
Trait Implementations§
Source§impl Clone for SpecifierUsage
impl Clone for SpecifierUsage
Source§impl Debug for SpecifierUsage
impl Debug for SpecifierUsage
impl Eq for SpecifierUsage
Source§impl PartialEq for SpecifierUsage
impl PartialEq for SpecifierUsage
Source§impl Serialize for SpecifierUsage
impl Serialize for SpecifierUsage
impl StructuralPartialEq for SpecifierUsage
Auto Trait Implementations§
impl Freeze for SpecifierUsage
impl RefUnwindSafe for SpecifierUsage
impl Send for SpecifierUsage
impl Sync for SpecifierUsage
impl Unpin for SpecifierUsage
impl UnsafeUnpin for SpecifierUsage
impl UnwindSafe for SpecifierUsage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.