pub trait Module:
Asset
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn ident(self: Vc<Self>) -> Vc<AssetIdent>
where Self: Sized;
// Provided methods
fn references(self: Vc<Self>) -> Vc<ModuleReferences>
where Self: Sized { ... }
fn is_self_async(self: Vc<Self>) -> Vc<bool>
where Self: Sized { ... }
fn style_type(self: Vc<Self>) -> Vc<OptionStyleType>
where Self: Sized { ... }
}
Expand description
A module. This usually represents parsed source code, which has references to other modules.
Required Methods§
Provided Methods§
Sourcefn references(self: Vc<Self>) -> Vc<ModuleReferences>where
Self: Sized,
fn references(self: Vc<Self>) -> Vc<ModuleReferences>where
Self: Sized,
Sourcefn is_self_async(self: Vc<Self>) -> Vc<bool>where
Self: Sized,
fn is_self_async(self: Vc<Self>) -> Vc<bool>where
Self: Sized,
Signifies the module itself is async, e.g. it uses top-level await, is a wasm module, etc.
Sourcefn style_type(self: Vc<Self>) -> Vc<OptionStyleType>where
Self: Sized,
fn style_type(self: Vc<Self>) -> Vc<OptionStyleType>where
Self: Sized,
The style type of the module.