Struct v8::ScriptOrModule
source · #[repr(C)]pub struct ScriptOrModule(_);
Expand description
A container type that holds relevant metadata for module loading.
This is passed back to the embedder as part of HostImportModuleDynamicallyCallback for module loading.
Implementations§
source§impl ScriptOrModule
impl ScriptOrModule
sourcepub fn get_resource_name(&self) -> Local<'_, Value>
pub fn get_resource_name(&self) -> Local<'_, Value>
The name that was passed by the embedder as ResourceName to the ScriptOrigin. This can be either a v8::String or v8::Undefined.
sourcepub fn host_defined_options(&self) -> Local<'_, Data>
pub fn host_defined_options(&self) -> Local<'_, Data>
The options that were passed by the embedder as HostDefinedOptions to the ScriptOrigin.
Trait Implementations§
source§impl Debug for ScriptOrModule
impl Debug for ScriptOrModule
source§impl<'s> PartialEq<ScriptOrModule> for ScriptOrModule
impl<'s> PartialEq<ScriptOrModule> for ScriptOrModule
source§fn eq(&self, other: &ScriptOrModule) -> bool
fn eq(&self, other: &ScriptOrModule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.