pub enum ImportKind {
EsStatic,
EsReexport,
EsDynamic,
CommonJs,
TsImportRequire,
RustUse,
RustMod,
}Expand description
How an import reference appears in source.
Variants§
EsStatic
import ... from "x".
EsReexport
export ... from "x".
EsDynamic
import("x") with a literal specifier.
CommonJs
require("x").
TsImportRequire
TypeScript import x = require("x").
RustUse
Rust use path, flattened to one leaf per import. The specifier is
the normalized leaf path (a::b::c), not the byte-for-byte source
text — grouped and aliased use-trees have no single as-written form
per leaf.
RustMod
Rust mod name; without a body.
Trait Implementations§
Source§impl Clone for ImportKind
impl Clone for ImportKind
Source§fn clone(&self) -> ImportKind
fn clone(&self) -> ImportKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImportKind
Source§impl Debug for ImportKind
impl Debug for ImportKind
impl Eq for ImportKind
Source§impl Hash for ImportKind
impl Hash for ImportKind
Source§impl PartialEq for ImportKind
impl PartialEq for ImportKind
impl StructuralPartialEq for ImportKind
Auto Trait Implementations§
impl Freeze for ImportKind
impl RefUnwindSafe for ImportKind
impl Send for ImportKind
impl Sync for ImportKind
impl Unpin for ImportKind
impl UnsafeUnpin for ImportKind
impl UnwindSafe for ImportKind
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.