Enum deno_graph::ModuleKind
source · [−]pub enum ModuleKind {
Amd,
Asserted,
BuiltIn,
CommonJs,
Esm,
External,
Script,
Synthetic,
SystemJs,
Umd,
}
Variants
Amd
An AMD module. Currently dependency analysis is not supported for these kinds of modules.
Asserted
An asserted module. The import location is required to determine what the
asserted type is as well as a loader/runtime would want to ensure the
MediaType
matches the assertion. Dependency analysis does not occur on
asserted modules.
BuiltIn
Represents a module which is built in to a runtime. The module does not contain source and will have no dependencies.
CommonJs
A CommonJS module.
Esm
An ECMAScript Module (JavaScript Module).
External
Represents a module which is not statically analyzed and is only available at runtime. It is up to the implementor to ensure that the module is loaded and available as a dependency. The module does not contain source code and will have no dependencies.
Script
A JavaScript script module. A slight misnomer, but it allows “plain” scripts to be imported into the module graph, but without supporting any dependency analysis.
Synthetic
An injected module where any dependencies are asserted and no dependency analysis occurs. This allows external meta data files which add dependencies to be represented in the graph.
SystemJs
A SystemJS module. Currently dependency analysis is not supported for these kinds of modules.
Umd
A UMD (a combined CommonJS, AMD and script module). Currently dependency analysis is not supported for these kinds of modules.
Trait Implementations
sourceimpl Clone for ModuleKind
impl Clone for ModuleKind
sourcefn clone(&self) -> ModuleKind
fn clone(&self) -> ModuleKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModuleKind
impl Debug for ModuleKind
sourceimpl<'de> Deserialize<'de> for ModuleKind
impl<'de> Deserialize<'de> for ModuleKind
sourcefn 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
sourceimpl PartialEq<ModuleKind> for ModuleKind
impl PartialEq<ModuleKind> for ModuleKind
sourceimpl Serialize for ModuleKind
impl Serialize for ModuleKind
impl StructuralPartialEq for ModuleKind
Auto Trait Implementations
impl RefUnwindSafe for ModuleKind
impl Send for ModuleKind
impl Sync for ModuleKind
impl Unpin for ModuleKind
impl UnwindSafe for ModuleKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more