pub enum UsageSiteKind {
Call,
WrapperDefinition,
ValueAlias,
NonCallReference,
JsxElement,
ReExport,
NestedWrapper,
DynamicImport,
Require,
SideEffectImport,
StarReExport,
}Expand description
How the code uses the dependency at a site.
The set is open: read an unknown kind as an unresolved site. The JSON schema types the field as a plain string for this reason. The order of the variants is the sort order of sites at the same position.
Variants§
Call
A call of the name, directly or through a wrapper.
WrapperDefinition
The initializer of a project wrapper.
ValueAlias
The whole initializer of a declarator that is not a wrapper.
NonCallReference
A value use that is not a call.
JsxElement
A JSX element.
ReExport
A named re-export from the package, or a re-export of a project wrapper.
NestedWrapper
A wrapper consumer that exports the wrapper again.
DynamicImport
An import("package") expression.
Require
A require("package") call.
SideEffectImport
An import "package" statement.
StarReExport
An export * from "package" statement.
Implementations§
Trait Implementations§
Source§impl Clone for UsageSiteKind
impl Clone for UsageSiteKind
impl Copy for UsageSiteKind
Source§impl Debug for UsageSiteKind
impl Debug for UsageSiteKind
impl Eq for UsageSiteKind
Source§impl Hash for UsageSiteKind
impl Hash for UsageSiteKind
Source§impl Ord for UsageSiteKind
impl Ord for UsageSiteKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for UsageSiteKind
impl PartialEq for UsageSiteKind
Source§impl PartialOrd for UsageSiteKind
impl PartialOrd for UsageSiteKind
Source§impl Serialize for UsageSiteKind
impl Serialize for UsageSiteKind
impl StructuralPartialEq for UsageSiteKind
Auto Trait Implementations§
impl Freeze for UsageSiteKind
impl RefUnwindSafe for UsageSiteKind
impl Send for UsageSiteKind
impl Sync for UsageSiteKind
impl Unpin for UsageSiteKind
impl UnsafeUnpin for UsageSiteKind
impl UnwindSafe for UsageSiteKind
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.