Struct rusty_v8::ScriptOrModule [−][src]
#[repr(C)]pub struct ScriptOrModule(_);
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
impl ScriptOrModule
[src]
impl ScriptOrModule
[src]pub fn get_resource_name(&self) -> Local<'_, Value>
[src]
pub fn get_resource_name(&self) -> Local<'_, Value>
[src]The name that was passed by the embedder as ResourceName to the ScriptOrigin. This can be either a v8::String or v8::Undefined.
pub fn get_host_defined_options(&self) -> Local<'_, PrimitiveArray>
[src]
pub fn get_host_defined_options(&self) -> Local<'_, PrimitiveArray>
[src]The options that were passed by the embedder as HostDefinedOptions to the ScriptOrigin.
Methods from Deref<Target = Data>
pub fn get_hash(&self) -> int
[src]
pub fn get_hash(&self) -> int
[src]Returns the V8 hash value for this value. The current implementation uses a hidden property to store the identity hash on some object types.
The return value will never be 0. Also, it is not guaranteed to be unique.
pub fn is_private(&self) -> bool
[src]
pub fn is_private(&self) -> bool
[src]Returns true if this data is a Private
.
pub fn is_object_template(&self) -> bool
[src]
pub fn is_object_template(&self) -> bool
[src]Returns true if this data is an ObjectTemplate
pub fn is_function_template(&self) -> bool
[src]
pub fn is_function_template(&self) -> bool
[src]Returns true if this data is a FunctionTemplate.
Trait Implementations
impl Debug for ScriptOrModule
[src]
impl Debug for ScriptOrModule
[src]impl Deref for ScriptOrModule
[src]
impl Deref for ScriptOrModule
[src]impl Hash for ScriptOrModule
[src]
impl Hash for ScriptOrModule
[src]impl<'s> PartialEq<Data> for ScriptOrModule
[src]
impl<'s> PartialEq<Data> for ScriptOrModule
[src]impl<'s> PartialEq<ScriptOrModule> for Data
[src]
impl<'s> PartialEq<ScriptOrModule> for Data
[src]impl<'s> PartialEq<ScriptOrModule> for ScriptOrModule
[src]
impl<'s> PartialEq<ScriptOrModule> for ScriptOrModule
[src]