pub enum SearchGapReason {
ImportAlias,
DefaultImport,
ReExportAlias,
NamespaceUse,
DynamicImport,
PassThrough,
}Expand description
Why a text search for an export name does not find the uses in a consumer,
or why a consumer is not a search target (pass-through).
Variants§
ImportAlias
The consumer imports the export under another local name
(import { foo as bar }).
DefaultImport
The consumer imports a default export under another local name.
ReExportAlias
A barrel re-exports the export under another name, and the consumer imports that name.
NamespaceUse
The consumer imports the whole module namespace and does not name the export.
DynamicImport
The consumer loads the module with a dynamic import() and does not
name the export.
PassThrough
The consumer only forwards the export and does not use it: a barrel
(export * from, export { foo } from), or a file that imports the
export and only exports it again (import { foo } from, then a
top-level export { foo }). A change of the export
needs no edit there, and the files that import through it are checked
on their own. Occurs with found.
Trait Implementations§
Source§impl Clone for SearchGapReason
impl Clone for SearchGapReason
impl Copy for SearchGapReason
Source§impl Debug for SearchGapReason
impl Debug for SearchGapReason
impl Eq for SearchGapReason
Source§impl PartialEq for SearchGapReason
impl PartialEq for SearchGapReason
Source§impl Serialize for SearchGapReason
impl Serialize for SearchGapReason
impl StructuralPartialEq for SearchGapReason
Auto Trait Implementations§
impl Freeze for SearchGapReason
impl RefUnwindSafe for SearchGapReason
impl Send for SearchGapReason
impl Sync for SearchGapReason
impl Unpin for SearchGapReason
impl UnsafeUnpin for SearchGapReason
impl UnwindSafe for SearchGapReason
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
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
key and return true if they are equal.